~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mpx-mul4-*.S: Use more portable type syntax for ambiguous instructions.
[catacomb]
/
pub
/
pkcs1.c
diff --git
a/pub/pkcs1.c
b/pub/pkcs1.c
index
590c05e
..
bb33351
100644
(file)
--- a/
pub/pkcs1.c
+++ b/
pub/pkcs1.c
@@
-31,6
+31,7
@@
#include <mLib/bits.h>
#include <mLib/dstr.h>
#include <mLib/bits.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include "ct.h"
#include "grand.h"
#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 --- */
/* --- 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;
return (-1);
q += pp->epsz;