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/rc2/rc2_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/rc2/rc2_skey.c')
| -rw-r--r-- | src/lib/libcrypto/rc2/rc2_skey.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/libcrypto/rc2/rc2_skey.c b/src/lib/libcrypto/rc2/rc2_skey.c index 0150b0e035..6668ac011f 100644 --- a/src/lib/libcrypto/rc2/rc2_skey.c +++ b/src/lib/libcrypto/rc2/rc2_skey.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <openssl/crypto.h> | ||
| 59 | #include <openssl/rc2.h> | 60 | #include <openssl/rc2.h> |
| 60 | #include "rc2_locl.h" | 61 | #include "rc2_locl.h" |
| 61 | 62 | ||
| @@ -95,6 +96,13 @@ static const unsigned char key_table[256]={ | |||
| 95 | * the same as specifying 1024 for the 'bits' parameter. Bsafe uses | 96 | * the same as specifying 1024 for the 'bits' parameter. Bsafe uses |
| 96 | * a version where the bits parameter is the same as len*8 */ | 97 | * a version where the bits parameter is the same as len*8 */ |
| 97 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits) | 98 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits) |
| 99 | #ifdef OPENSSL_FIPS | ||
| 100 | { | ||
| 101 | fips_cipher_abort(RC2); | ||
| 102 | private_RC2_set_key(key, len, data, bits); | ||
| 103 | } | ||
| 104 | void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits) | ||
| 105 | #endif | ||
| 98 | { | 106 | { |
| 99 | int i,j; | 107 | int i,j; |
| 100 | unsigned char *k; | 108 | unsigned char *k; |
