diff options
Diffstat (limited to 'rsaref/rsaref.c')
-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) |