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