X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..2e572d839ee0e730bebccab3b5dc3ba3a40a37ee:/pub/pss.c diff --git a/pub/pss.c b/pub/pss.c index 8e77b78e..137b876f 100644 --- a/pub/pss.c +++ b/pub/pss.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "gcipher.h" #include "ghash.h" @@ -174,7 +175,7 @@ int pss_decode(mp *mi, const void *m, size_t msz, octet *b, size_t sz, GH_HASH(h, m, msz); GH_HASH(h, s, pp->ssz); s = GH_DONE(h, 0); - rc = !memcmp(s, r, hsz); + rc = MEMCMP(s, ==, r, hsz); GH_DESTROY(h); if (!rc) return (-1);