From: Ulf Möller Date: Fri, 8 Jun 2001 14:17:12 +0000 (+0000) Subject: as in head X-Git-Tag: OpenSSL_0_9_6b~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=19352b794d62c0d3d2f0b951aea97006bb95fb5a;p=oweals%2Fopenssl.git as in head --- diff --git a/crypto/rsa/rsa_oaep.c b/crypto/rsa/rsa_oaep.c index 581c495997..1849e55cd5 100644 --- 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