summaryrefslogtreecommitdiffstats
path: root/rsaref
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-12-04 01:19:23 +0000
committerUlf Möller <ulf@openssl.org>1999-12-04 01:19:23 +0000
commitbc3baeaccafe289f06c8bce1d3eeac661ebc15c4 (patch)
tree538a1860c453d6a62e0aac5fbee606544861da54 /rsaref
parent9f382899b271a37255447674f05331d7cb9c1a86 (diff)
CORE SDI proposed patch doesn't make any sense. Undo.
Diffstat (limited to 'rsaref')
-rw-r--r--rsaref/rsaref.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/rsaref/rsaref.c b/rsaref/rsaref.c
index a2febddbfd..7677eb9fce 100644
--- a/rsaref/rsaref.c
+++ b/rsaref/rsaref.c
@@ -209,11 +209,6 @@ int RSA_ref_private_decrypt(int len, unsigned char *from, unsigned char *to,
if (!RSAref_Private_eay2ref(rsa,&RSAkey))
goto err;
- if (len > RSAref_MAX_LEN)
- {
- RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_DECRYPT,RSAREF_R_LEN);
- goto err;
- }
if ((i=RSAPrivateDecrypt(to,&outlen,from,len,&RSAkey)) != 0)
{
RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_DECRYPT,i);
@@ -237,11 +232,6 @@ int RSA_ref_private_encrypt(int len, unsigned char *from, unsigned char *to,
}
if (!RSAref_Private_eay2ref(rsa,&RSAkey))
goto err;
- if (len + 3 > RSAref_MAX_LEN)
- {
- RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_ENCRYPT,RSAREF_R_LEN);
- goto err;
- }
if ((i=RSAPrivateEncrypt(to,&outlen,from,len,&RSAkey)) != 0)
{
RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_ENCRYPT,i);
@@ -260,11 +250,6 @@ int RSA_ref_public_decrypt(int len, unsigned char *from, unsigned char *to,
if (!RSAref_Public_eay2ref(rsa,&RSAkey))
goto err;
- if (len > RSAref_MAX_LEN)
- {
- RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_DECRYPT,RSAREF_R_LEN);
- goto err;
- }
if ((i=RSAPublicDecrypt(to,&outlen,from,len,&RSAkey)) != 0)
{
RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_DECRYPT,i);
@@ -301,11 +286,6 @@ int RSA_ref_public_encrypt(int len, unsigned char *from, unsigned char *to,
if (!RSAref_Public_eay2ref(rsa,&RSAkey))
goto err;
- if (len + 3 > RSAref_MAX_LEN)
- {
- RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_LEN);
- goto err;
- }
if ((i=RSAPublicEncrypt(to,&outlen,from,len,&RSAkey,&rnd)) != 0)
{
RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,i);