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:
Love Hörnquist Åstrand
2006-06-22 02:07:25 +00:00
parent a43039110b
commit 50b0269256

View File

@@ -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);