s/11/RSA_PKCS1_PADDING_SIZE/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17669 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -78,7 +78,7 @@ imath_rsa_public_encrypt(int flen, const unsigned char* from,
|
||||
|
||||
size = RSA_size(rsa);
|
||||
|
||||
if (size < 11 || size - 11 < flen)
|
||||
if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen)
|
||||
return -1;
|
||||
|
||||
BN2mpz(&n, rsa->n);
|
||||
@@ -207,7 +207,7 @@ imath_rsa_private_encrypt(int flen, const unsigned char* from,
|
||||
|
||||
size = RSA_size(rsa);
|
||||
|
||||
if (size < 11 || size - 11 < flen)
|
||||
if (size < RSA_PKCS1_PADDING_SIZE || size - RSA_PKCS1_PADDING_SIZE < flen)
|
||||
return -1;
|
||||
|
||||
BN2mpz(&n, rsa->n);
|
||||
|
Reference in New Issue
Block a user