diff options
| author | djm <> | 2012-10-13 21:23:50 +0000 |
|---|---|---|
| committer | djm <> | 2012-10-13 21:23:50 +0000 |
| commit | 228cae30b117c2493f69ad3c195341cd6ec8d430 (patch) | |
| tree | 29ff00b10d52c0978077c4fd83c33b065bade73e /src/lib/libcrypto/bf/bf_skey.c | |
| parent | 731838c66b52c0ae5888333005b74115a620aa96 (diff) | |
| download | openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.tar.gz openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.tar.bz2 openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.zip | |
import OpenSSL-1.0.1c
Diffstat (limited to 'src/lib/libcrypto/bf/bf_skey.c')
| -rw-r--r-- | src/lib/libcrypto/bf/bf_skey.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/libcrypto/bf/bf_skey.c b/src/lib/libcrypto/bf/bf_skey.c index 3673cdee6e..3b0bca41ae 100644 --- a/src/lib/libcrypto/bf/bf_skey.c +++ b/src/lib/libcrypto/bf/bf_skey.c | |||
| @@ -58,11 +58,19 @@ | |||
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | #include <openssl/crypto.h> | ||
| 61 | #include <openssl/blowfish.h> | 62 | #include <openssl/blowfish.h> |
| 62 | #include "bf_locl.h" | 63 | #include "bf_locl.h" |
| 63 | #include "bf_pi.h" | 64 | #include "bf_pi.h" |
| 64 | 65 | ||
| 65 | void BF_set_key(BF_KEY *key, int len, const unsigned char *data) | 66 | void BF_set_key(BF_KEY *key, int len, const unsigned char *data) |
| 67 | #ifdef OPENSSL_FIPS | ||
| 68 | { | ||
| 69 | fips_cipher_abort(BLOWFISH); | ||
| 70 | private_BF_set_key(key, len, data); | ||
| 71 | } | ||
| 72 | void private_BF_set_key(BF_KEY *key, int len, const unsigned char *data) | ||
| 73 | #endif | ||
| 66 | { | 74 | { |
| 67 | int i; | 75 | int i; |
| 68 | BF_LONG *p,ri,in[2]; | 76 | BF_LONG *p,ri,in[2]; |
