diff options
author | djm <> | 2005-04-29 05:39:33 +0000 |
---|---|---|
committer | djm <> | 2005-04-29 05:39:33 +0000 |
commit | 68edd00d9258df93b1366c71ac124e0cadf7bc08 (patch) | |
tree | 3ce4ae2a9747bbc11aed1f95f9bbea92c41f8683 /src/lib/libcrypto/rc2/rc2_skey.c | |
parent | f396ed0f5ce0af56bfde2e75e15cf1f52924c779 (diff) | |
download | openbsd-68edd00d9258df93b1366c71ac124e0cadf7bc08.tar.gz openbsd-68edd00d9258df93b1366c71ac124e0cadf7bc08.tar.bz2 openbsd-68edd00d9258df93b1366c71ac124e0cadf7bc08.zip |
resolve conflicts
Diffstat (limited to 'src/lib/libcrypto/rc2/rc2_skey.c')
-rw-r--r-- | src/lib/libcrypto/rc2/rc2_skey.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/libcrypto/rc2/rc2_skey.c b/src/lib/libcrypto/rc2/rc2_skey.c index cab3080c73..22f372f85c 100644 --- a/src/lib/libcrypto/rc2/rc2_skey.c +++ b/src/lib/libcrypto/rc2/rc2_skey.c | |||
@@ -57,6 +57,7 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <openssl/rc2.h> | 59 | #include <openssl/rc2.h> |
60 | #include <openssl/crypto.h> | ||
60 | #include "rc2_locl.h" | 61 | #include "rc2_locl.h" |
61 | 62 | ||
62 | static unsigned char key_table[256]={ | 63 | static unsigned char key_table[256]={ |
@@ -90,7 +91,19 @@ static unsigned char key_table[256]={ | |||
90 | * BSAFE uses the 'retarded' version. What I previously shipped is | 91 | * BSAFE uses the 'retarded' version. What I previously shipped is |
91 | * the same as specifying 1024 for the 'bits' parameter. Bsafe uses | 92 | * the same as specifying 1024 for the 'bits' parameter. Bsafe uses |
92 | * a version where the bits parameter is the same as len*8 */ | 93 | * a version where the bits parameter is the same as len*8 */ |
94 | |||
95 | #ifdef OPENSSL_FIPS | ||
96 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits) | ||
97 | { | ||
98 | if (FIPS_mode()) | ||
99 | FIPS_BAD_ABORT(RC2) | ||
100 | private_RC2_set_key(key, len, data, bits); | ||
101 | } | ||
102 | void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, | ||
103 | int bits) | ||
104 | #else | ||
93 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits) | 105 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits) |
106 | #endif | ||
94 | { | 107 | { |
95 | int i,j; | 108 | int i,j; |
96 | unsigned char *k; | 109 | unsigned char *k; |