X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..1519ef6617fd7351bd40026b9eeb47c7f7f42234:/pub/pkcs1.c diff --git a/pub/pkcs1.c b/pub/pkcs1.c index 590c05e1..bb333514 100644 --- a/pub/pkcs1.c +++ b/pub/pkcs1.c @@ -31,6 +31,7 @@ #include #include +#include #include "ct.h" #include "grand.h" @@ -245,7 +246,7 @@ int pkcs1_sigdecode(mp *s, const void *m, size_t msz, octet *b, size_t sz, /* --- Check the encoding parameters --- */ - if (pp->ep && memcmp(q, pp->ep, pp->epsz) != 0) + if (pp->ep && MEMCMP(q, !=, pp->ep, pp->epsz)) return (-1); q += pp->epsz;