X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/d8fedf21cc7f6ba61e77db21de0eb9892545d34f..04ed79b8ad88991517755598c5e8872380ec3dde:/server/keyset.c diff --git a/server/keyset.c b/server/keyset.c index c54febdc..66a59618 100644 --- a/server/keyset.c +++ b/server/keyset.c @@ -201,7 +201,7 @@ static int dodecrypt(keyset *ks, unsigned ty, buf *b, buf *bb, uint32 *seq) GH_HASH(h, t, sizeof(t)); GH_HASH(h, pseq, SEQSZ + ivsz + sz); mac = GH_DONE(h, 0); - eq = !memcmp(mac, pmac, tagsz); + eq = ct_memeq(mac, pmac, tagsz); IF_TRACING(T_KEYSET, { trace_block(T_CRYPTO, "crypto: computed MAC", mac, tagsz); })