diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-01-26 15:37:41 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-01-26 15:37:41 +0000 |
commit | c553721e8ba2a79c9ee14bf17814271ce1f33d9e (patch) | |
tree | 88e6aee60d78b8c534ea559f1106dddaa4229e4c /crypto/rsa/rsa_oaep.c | |
parent | 1588a3cae72e60071f1f8a89dbd1356bc08581fc (diff) |
FIPS mode RSA changes:
Check for selftest failures.
Pairwise consistency test for RSA key generation.
Use some EVP macros instead of EVP functions.
Use minimal FIPS EVP where needed.
Diffstat (limited to 'crypto/rsa/rsa_oaep.c')
-rw-r--r-- | crypto/rsa/rsa_oaep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_oaep.c b/crypto/rsa/rsa_oaep.c index 553d212ebe..bf8dd044b1 100644 --- a/crypto/rsa/rsa_oaep.c +++ b/crypto/rsa/rsa_oaep.c @@ -18,6 +18,8 @@ * an equivalent notion. */ +#define OPENSSL_FIPSEVP + #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) #include <stdio.h> @@ -194,7 +196,7 @@ int PKCS1_MGF1(unsigned char *mask, long len, int rv = -1; EVP_MD_CTX_init(&c); - mdlen = EVP_MD_size(dgst); + mdlen = M_EVP_MD_size(dgst); if (mdlen < 0) goto err; for (i = 0; outlen < len; i++) |