X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/blobdiff_plain/f92a52d40b131d928c2e8a28b08dff4f1e7c41dd..83bb377b995f482e9987fc543e277816a5fa2e32:/progs/cc-sig.c?ds=inline diff --git a/progs/cc-sig.c b/progs/cc-sig.c index 14f5e108..e157e8d1 100644 --- a/progs/cc-sig.c +++ b/progs/cc-sig.c @@ -37,6 +37,7 @@ #include "sha.h" #include "has160.h" +#include "ct.h" #include "ec.h" #include "ec-keys.h" #include "dh.h" @@ -634,7 +635,7 @@ static int mac_vrfdoit(sig *s, dstr *d) const octet *t; t = GH_DONE(m->s.h, 0); - if (d->len != m->mc->hashsz || memcmp(d->buf, t, d->len) != 0) + if (d->len != m->mc->hashsz || !ct_memeq(d->buf, t, d->len)) return (-1); return (0); }