projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Configure, x86gas.pl: fix linker warnings in 32-bit Darwin build.
[oweals/openssl.git]
/
crypto
/
rsa
/
rsa_oaep.c
diff --git
a/crypto/rsa/rsa_oaep.c
b/crypto/rsa/rsa_oaep.c
index 553d212ebe9c7cdacde646a92ac0250185793df2..eaae71223682099f737e5c8377894662de1a15da 100644
(file)
--- a/
crypto/rsa/rsa_oaep.c
+++ b/
crypto/rsa/rsa_oaep.c
@@
-18,6
+18,8
@@
* an equivalent notion.
*/
* an equivalent notion.
*/
+#define OPENSSL_FIPSAPI
+
#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1)
#include <stdio.h>
#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);
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++)
if (mdlen < 0)
goto err;
for (i = 0; outlen < len; i++)