diff options
author | Ulf Möller <ulf@openssl.org> | 2001-06-08 14:16:39 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2001-06-08 14:16:39 +0000 |
commit | 0ad0eaf61cb4979ac5c7f95b10c8cfb1170ade68 (patch) | |
tree | d15ac101197e6670577b0c24ef4b27b3bee2f058 /crypto/rsa | |
parent | 47b0f48dd9f849f0149f5a5809292e322e129080 (diff) | |
download | openssl-0ad0eaf61cb4979ac5c7f95b10c8cfb1170ade68.tar.gz |
more error codes fixed
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_oaep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/rsa/rsa_oaep.c b/crypto/rsa/rsa_oaep.c index a893142fdb..a489639259 100644 --- a/crypto/rsa/rsa_oaep.c +++ b/crypto/rsa/rsa_oaep.c @@ -130,14 +130,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 |