projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8746ee3
)
as in head
author
Ulf Möller
<ulf@openssl.org>
Fri, 8 Jun 2001 14:17:12 +0000
(14:17 +0000)
committer
Ulf Möller
<ulf@openssl.org>
Fri, 8 Jun 2001 14:17:12 +0000
(14:17 +0000)
crypto/rsa/rsa_oaep.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_oaep.c
b/crypto/rsa/rsa_oaep.c
index 581c495997f8d93c9309cb7ec118ed9b71daacea..1849e55cd5de0980afabbccc828f47e24105e4ef 100644
(file)
--- a/
crypto/rsa/rsa_oaep.c
+++ b/
crypto/rsa/rsa_oaep.c
@@
-113,14
+113,13
@@
int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
if (db[i] != 0x00)
break;
if (db[i] != 0x01 || i++ >= dblen)
- RSAerr(RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP,
- RSA_R_OAEP_DECODING_ERROR);
+ goto decoding_err;
else
{
mlen = dblen - i;
if (tlen < mlen)
{
- RSAerr(RSA_F_RSA_PADDING_
ADD
_PKCS1_OAEP, RSA_R_DATA_TOO_LARGE);
+ RSAerr(RSA_F_RSA_PADDING_
CHECK
_PKCS1_OAEP, RSA_R_DATA_TOO_LARGE);
mlen = -1;
}
else