diff options
author | Andy Polyakov <appro@openssl.org> | 2004-07-18 17:26:01 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-07-18 17:26:01 +0000 |
commit | 859ceeeb5174ce50842112c05230cebb59702e83 (patch) | |
tree | 0f97f4a806d322d032ea687063b331c06199f8ce /crypto/sha/sha512.c | |
parent | 22edcae7fadb8357cac7443cb3af62267d5ce664 (diff) |
Anchor AES and SHA-256/-512 assembler from C.
Diffstat (limited to 'crypto/sha/sha512.c')
-rw-r--r-- | crypto/sha/sha512.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/sha/sha512.c b/crypto/sha/sha512.c index dc1047d59e..5f7a8dee6d 100644 --- a/crypto/sha/sha512.c +++ b/crypto/sha/sha512.c @@ -83,7 +83,10 @@ int SHA512_Init (SHA512_CTX *c) return 1; } -static void sha512_block (SHA512_CTX *ctx, const void *in, size_t num); +#ifndef SHA512_ASM +static +#endif +void sha512_block (SHA512_CTX *ctx, const void *in, size_t num); int SHA512_Final (unsigned char *md, SHA512_CTX *c) { @@ -241,6 +244,7 @@ unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md) return(md); } +#ifndef SHA512_ASM static const SHA_LONG64 K512[80] = { U64(0x428a2f98d728ae22),U64(0x7137449123ef65cd), U64(0xb5c0fbcfec4d3b2f),U64(0xe9b5dba58189dbbc), @@ -476,3 +480,5 @@ static void sha512_block (SHA512_CTX *ctx, const void *in, size_t num) } #endif + +#endif /* SHA512_ASM */ |