summaryrefslogtreecommitdiffstats
path: root/rsaref
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-03-25 07:49:33 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-03-25 07:49:33 +0000
commit0e9fc7115b89e672d74fe48f6a2120d8f10d5d97 (patch)
tree561e51b59ddeeaabc398b185e14851433444eaee /rsaref
parent1b276f3012c9470d1f7ca0d5d20c3f40de47faf2 (diff)
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)