diff options
author | Ralf S. Engelschall <rse@openssl.org> | 1999-03-25 08:49:33 +0100 |
---|---|---|
committer | Ralf S. Engelschall <rse@openssl.org> | 1999-03-25 08:49:33 +0100 |
commit | 0e9fc7115b89e672d74fe48f6a2120d8f10d5d97 (patch) | |
tree | 561e51b59ddeeaabc398b185e14851433444eaee /rsaref | |
parent | Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h (diff) | |
download | openssl-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.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) |