~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdsa: Fix the conversion of hashes to integers to conform to the spec.
[catacomb]
/
oaep.c
diff --git
a/oaep.c
b/oaep.c
index
ab60b5e
..
d7570de
100644
(file)
--- a/
oaep.c
+++ b/
oaep.c
@@
-184,7
+184,8
@@
int oaep_decode(mp *m, octet *b, size_t sz, unsigned long nbits, void *p)
pp = mq + hsz;
while (*pp == 0 && pp < qq)
pp++;
- bad |= (pp >= qq) | (*pp++ != 1);
+ bad |= (pp >= qq) | (*pp != 1);
+ pp++;
n = qq - pp;
memmove(q, pp, n);
return (bad ? -1 : n);