~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
/
pss.c
diff --git
a/pub/pss.c
b/pub/pss.c
index
8e77b78
..
137b876
100644
(file)
--- a/
pub/pss.c
+++ b/
pub/pss.c
@@
-32,6
+32,7
@@
#include <mLib/alloc.h>
#include <mLib/bits.h>
#include <mLib/dstr.h>
#include <mLib/alloc.h>
#include <mLib/bits.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include "gcipher.h"
#include "ghash.h"
#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);
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);
GH_DESTROY(h);
if (!rc) return (-1);