projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9f38289
)
CORE SDI proposed patch doesn't make any sense. Undo.
author
Ulf Möller
<ulf@openssl.org>
Sat, 4 Dec 1999 01:19:23 +0000
(
01:19
+0000)
committer
Ulf Möller
<ulf@openssl.org>
Sat, 4 Dec 1999 01:19:23 +0000
(
01:19
+0000)
rsaref/rsaref.c
patch
|
blob
|
history
diff --git
a/rsaref/rsaref.c
b/rsaref/rsaref.c
index a2febddbfd42a7af13c64c9ef147b209ffb7dd3f..7677eb9fce9fa10c9f7c2abf4e082f32d6a5fbde 100644
(file)
--- 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 (!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);
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 (!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);
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 (!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);
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 (!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);
if ((i=RSAPublicEncrypt(to,&outlen,from,len,&RSAkey,&rnd)) != 0)
{
RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,i);