summaryrefslogtreecommitdiffstats
path: root/rsaref
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-03-25 08:49:33 +0100
committerRalf S. Engelschall <rse@openssl.org>1999-03-25 08:49:33 +0100
commit0e9fc7115b89e672d74fe48f6a2120d8f10d5d97 (patch)
tree561e51b59ddeeaabc398b185e14851433444eaee /rsaref
parentMove definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h (diff)
downloadopenssl-0e9fc7115b89e672d74fe48f6a2120d8f10d5d97.tar.xz
openssl-0e9fc7115b89e672d74fe48f6a2120d8f10d5d97.zip
Make sure the RSA OAEP test is skipped under -DRSAref because
OAEP isn't supported when OpenSSL is built with RSAref. Submitted by: Ulf Moeller <ulf@fitug.de> Reviewed by: Ralf S. Engelschall
Diffstat (limited to 'rsaref')
-rw-r--r--rsaref/rsaref.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsaref/rsaref.c b/rsaref/rsaref.c
index 5f772972d5..90cda4687b 100644
--- a/rsaref/rsaref.c
+++ b/rsaref/rsaref.c
@@ -328,6 +328,9 @@ int padding;
RSARandomState rnd;
unsigned char buf[16];
+ if (padding == RSA_PKCS1_OAEP_PADDING)
+ goto err;
+
R_RandomInit(&rnd);
R_GetRandomBytesNeeded((unsigned int *)&i,&rnd);
while (i > 0)