diff options
author | Ralf S. Engelschall <rse@openssl.org> | 1999-03-25 07:49:33 +0000 |
---|---|---|
committer | Ralf S. Engelschall <rse@openssl.org> | 1999-03-25 07:49:33 +0000 |
commit | 0e9fc7115b89e672d74fe48f6a2120d8f10d5d97 (patch) | |
tree | 561e51b59ddeeaabc398b185e14851433444eaee /rsaref | |
parent | 1b276f3012c9470d1f7ca0d5d20c3f40de47faf2 (diff) | |
download | openssl-0e9fc7115b89e672d74fe48f6a2120d8f10d5d97.tar.gz |
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.c | 3 |
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) |