diff options
Diffstat (limited to 'crypto/bf/bf_skey.c')
-rw-r--r-- | crypto/bf/bf_skey.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/crypto/bf/bf_skey.c b/crypto/bf/bf_skey.c index 6ac2aeb..3b0bca4 100644 --- a/crypto/bf/bf_skey.c +++ b/crypto/bf/bf_skey.c @@ -58,16 +58,19 @@ #include <stdio.h> #include <string.h> -#include <openssl/blowfish.h> #include <openssl/crypto.h> -#ifdef OPENSSL_FIPS -#include <openssl/fips.h> -#endif - +#include <openssl/blowfish.h> #include "bf_locl.h" #include "bf_pi.h" -FIPS_NON_FIPS_VCIPHER_Init(BF) +void BF_set_key(BF_KEY *key, int len, const unsigned char *data) +#ifdef OPENSSL_FIPS + { + fips_cipher_abort(BLOWFISH); + private_BF_set_key(key, len, data); + } +void private_BF_set_key(BF_KEY *key, int len, const unsigned char *data) +#endif { int i; BF_LONG *p,ri,in[2]; |