diff options
author | appro <appro> | 2005-10-11 19:12:24 +0000 |
---|---|---|
committer | appro <appro> | 2005-10-11 19:12:24 +0000 |
commit | 2a7ce209acfbdece5abae6a10bf5e146fef76734 (patch) | |
tree | cdbf087be436f9120a32a323d4e304d282496f46 | |
parent | b4624bdb7f68802f065e0e8e2d44f5343117130d (diff) | |
download | openssl-2a7ce209acfbdece5abae6a10bf5e146fef76734.tar.gz |
Retain binary compatibility between 0.9.7h and 0.9.7g.
-rw-r--r-- | crypto/evp/evp.h | 4 | ||||
-rw-r--r-- | crypto/hmac/hmac.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index 058dae090..63e6b2d51 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -132,7 +132,11 @@ #define EVP_CAST5_KEY_SIZE 16 #define EVP_RC5_32_12_16_KEY_SIZE 16 */ +#ifdef OPENSSL_FIPS #define EVP_MAX_MD_SIZE 64 /* longest known SHA512 */ +#else +#define EXP_MAX_MD_SIZE (16+20) /* The SSLv3 md5+sha1 type */ +#endif #define EVP_MAX_KEY_LENGTH 32 #define EVP_MAX_IV_LENGTH 16 #define EVP_MAX_BLOCK_LENGTH 32 diff --git a/crypto/hmac/hmac.h b/crypto/hmac/hmac.h index 8f3d7e54f..c6489c04c 100644 --- a/crypto/hmac/hmac.h +++ b/crypto/hmac/hmac.h @@ -64,7 +64,11 @@ #include <openssl/evp.h> +#ifdef OPENSSL_FIPS #define HMAC_MAX_MD_CBLOCK 128 +#else +#define HMAC_MAX_MD_CBLOCK 64 +#endif #ifdef __cplusplus extern "C" { |