diff options
author | Bodo Möller <bodo@openssl.org> | 2006-09-06 06:43:11 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2006-09-06 06:43:11 +0000 |
commit | 2952886010a59f92a22f933cb81ee7735e008fef (patch) | |
tree | 67341dfa602e619b282bd64b31a63f559a12357c /crypto/rsa/rsa_eay.c | |
parent | 613e7d2a6534776667353eb7ac348bdcaa403292 (diff) |
Remove non-functional part of recent patch, after discussion with
Colin Percival (this would have caused more problems than solved,
and isn't really necessary anyway)
Diffstat (limited to 'crypto/rsa/rsa_eay.c')
-rw-r--r-- | crypto/rsa/rsa_eay.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/crypto/rsa/rsa_eay.c b/crypto/rsa/rsa_eay.c index 863a45a975..c6ceaee6e7 100644 --- a/crypto/rsa/rsa_eay.c +++ b/crypto/rsa/rsa_eay.c @@ -640,15 +640,6 @@ static int RSA_eay_public_decrypt(int flen, const unsigned char *from, { case RSA_PKCS1_PADDING: r=RSA_padding_check_PKCS1_type_1(to,num,buf,i,num); - /* Generally signatures should be at least 2/3 padding, though - this isn't possible for really short keys and some standard - signature schemes, so don't check if the unpadded data is - small. */ - if(r > 42 && 3*8*r >= BN_num_bits(rsa->n)) - { - RSAerr(RSA_F_RSA_EAY_PUBLIC_DECRYPT, RSA_R_PKCS1_PADDING_TOO_SHORT); - goto err; - } break; case RSA_X931_PADDING: r=RSA_padding_check_X931(to,num,buf,i,num); |