From 50b0269256a7d1c0dd822f4bf4c10eced98e9fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 22 Jun 2006 02:07:25 +0000 Subject: [PATCH] s/11/RSA_PKCS1_PADDING_SIZE/ git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17669 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/rsa-imath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/des/rsa-imath.c b/lib/des/rsa-imath.c index 825488dbd..24243bfb2 100644 --- a/lib/des/rsa-imath.c +++ b/lib/des/rsa-imath.c @@ -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);