diff options
author | Andy Polyakov <appro@openssl.org> | 2004-07-25 18:25:24 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-07-25 18:25:24 +0000 |
commit | fbf96849e9e48750338eba1e2f4cc04d1ae4c1fd (patch) | |
tree | 4d66448304e94651e93976a9eff7dc7fe3ce0373 /crypto/sha/sha512.c | |
parent | d70e2507f8d291ef20e50fc6b26c1c0cef0590de (diff) | |
download | openssl-fbf96849e9e48750338eba1e2f4cc04d1ae4c1fd.zip openssl-fbf96849e9e48750338eba1e2f4cc04d1ae4c1fd.tar.gz openssl-fbf96849e9e48750338eba1e2f4cc04d1ae4c1fd.tar.bz2 |
Make SHA-256/-512 optional. Note that no-sha switches off *all* SHA.
Diffstat (limited to 'crypto/sha/sha512.c')
-rw-r--r-- | crypto/sha/sha512.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/sha/sha512.c b/crypto/sha/sha512.c index b328fe7..bd1a125 100644 --- a/crypto/sha/sha512.c +++ b/crypto/sha/sha512.c @@ -4,6 +4,7 @@ * according to the OpenSSL license [found in ../../LICENSE]. * ==================================================================== */ +#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA512) /* * IMPLEMENTATION NOTES. * @@ -344,7 +345,7 @@ static const SHA_LONG64 K512[80] = { #define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z))) #define Maj(x,y,z) (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) -#if defined(OPENSSL_IA32_SSE2) && !defined(OPENSSL_NO_ASM) +#if defined(OPENSSL_IA32_SSE2) && !defined(OPENSSL_NO_ASM) && !defined(I386_ONLY) #define GO_FOR_SSE2(ctx,in,num) do { \ extern int OPENSSL_ia32cap; \ void sha512_block_sse2(void *,const void *,size_t); \ @@ -490,3 +491,5 @@ static void sha512_block (SHA512_CTX *ctx, const void *in, size_t num) #endif #endif /* SHA512_ASM */ + +#endif /* OPENSSL_NO_SHA512 */ |