diff options
Diffstat (limited to 'src/lib/libcrypto/idea/idea.h')
-rw-r--r-- | src/lib/libcrypto/idea/idea.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/idea/idea.h b/src/lib/libcrypto/idea/idea.h index bf97a37e39..bf41844fd7 100644 --- a/src/lib/libcrypto/idea/idea.h +++ b/src/lib/libcrypto/idea/idea.h | |||
@@ -59,8 +59,6 @@ | |||
59 | #ifndef HEADER_IDEA_H | 59 | #ifndef HEADER_IDEA_H |
60 | #define HEADER_IDEA_H | 60 | #define HEADER_IDEA_H |
61 | 61 | ||
62 | #include <openssl/opensslconf.h> /* IDEA_INT, OPENSSL_NO_IDEA */ | ||
63 | |||
64 | #ifdef OPENSSL_NO_IDEA | 62 | #ifdef OPENSSL_NO_IDEA |
65 | #error IDEA is disabled. | 63 | #error IDEA is disabled. |
66 | #endif | 64 | #endif |
@@ -68,6 +66,7 @@ | |||
68 | #define IDEA_ENCRYPT 1 | 66 | #define IDEA_ENCRYPT 1 |
69 | #define IDEA_DECRYPT 0 | 67 | #define IDEA_DECRYPT 0 |
70 | 68 | ||
69 | #include <openssl/opensslconf.h> /* IDEA_INT */ | ||
71 | #define IDEA_BLOCK 8 | 70 | #define IDEA_BLOCK 8 |
72 | #define IDEA_KEY_LENGTH 16 | 71 | #define IDEA_KEY_LENGTH 16 |
73 | 72 | ||
@@ -83,8 +82,12 @@ typedef struct idea_key_st | |||
83 | const char *idea_options(void); | 82 | const char *idea_options(void); |
84 | void idea_ecb_encrypt(const unsigned char *in, unsigned char *out, | 83 | void idea_ecb_encrypt(const unsigned char *in, unsigned char *out, |
85 | IDEA_KEY_SCHEDULE *ks); | 84 | IDEA_KEY_SCHEDULE *ks); |
85 | #ifdef OPENSSL_FIPS | ||
86 | void private_idea_set_encrypt_key(const unsigned char *key, | ||
87 | IDEA_KEY_SCHEDULE *ks); | ||
88 | #endif | ||
86 | void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks); | 89 | void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks); |
87 | void idea_set_decrypt_key(const IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk); | 90 | void idea_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk); |
88 | void idea_cbc_encrypt(const unsigned char *in, unsigned char *out, | 91 | void idea_cbc_encrypt(const unsigned char *in, unsigned char *out, |
89 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,int enc); | 92 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,int enc); |
90 | void idea_cfb64_encrypt(const unsigned char *in, unsigned char *out, | 93 | void idea_cfb64_encrypt(const unsigned char *in, unsigned char *out, |