diff options
Diffstat (limited to 'src/lib/libcrypto/rc2/rc2.h')
-rw-r--r-- | src/lib/libcrypto/rc2/rc2.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rc2/rc2.h b/src/lib/libcrypto/rc2/rc2.h index 34c8362317..71788158d8 100644 --- a/src/lib/libcrypto/rc2/rc2.h +++ b/src/lib/libcrypto/rc2/rc2.h | |||
@@ -59,7 +59,6 @@ | |||
59 | #ifndef HEADER_RC2_H | 59 | #ifndef HEADER_RC2_H |
60 | #define HEADER_RC2_H | 60 | #define HEADER_RC2_H |
61 | 61 | ||
62 | #include <openssl/opensslconf.h> /* OPENSSL_NO_RC2, RC2_INT */ | ||
63 | #ifdef OPENSSL_NO_RC2 | 62 | #ifdef OPENSSL_NO_RC2 |
64 | #error RC2 is disabled. | 63 | #error RC2 is disabled. |
65 | #endif | 64 | #endif |
@@ -67,6 +66,7 @@ | |||
67 | #define RC2_ENCRYPT 1 | 66 | #define RC2_ENCRYPT 1 |
68 | #define RC2_DECRYPT 0 | 67 | #define RC2_DECRYPT 0 |
69 | 68 | ||
69 | #include <openssl/opensslconf.h> /* RC2_INT */ | ||
70 | #define RC2_BLOCK 8 | 70 | #define RC2_BLOCK 8 |
71 | #define RC2_KEY_LENGTH 16 | 71 | #define RC2_KEY_LENGTH 16 |
72 | 72 | ||
@@ -79,7 +79,10 @@ typedef struct rc2_key_st | |||
79 | RC2_INT data[64]; | 79 | RC2_INT data[64]; |
80 | } RC2_KEY; | 80 | } RC2_KEY; |
81 | 81 | ||
82 | 82 | #ifdef OPENSSL_FIPS | |
83 | void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, | ||
84 | int bits); | ||
85 | #endif | ||
83 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits); | 86 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits); |
84 | void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key, | 87 | void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key, |
85 | int enc); | 88 | int enc); |