summaryrefslogtreecommitdiffstats
path: root/crypto/sha/sha256.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2004-07-18 17:26:01 +0000
committerAndy Polyakov <appro@openssl.org>2004-07-18 17:26:01 +0000
commit859ceeeb5174ce50842112c05230cebb59702e83 (patch)
tree0f97f4a806d322d032ea687063b331c06199f8ce /crypto/sha/sha256.c
parent22edcae7fadb8357cac7443cb3af62267d5ce664 (diff)
Anchor AES and SHA-256/-512 assembler from C.
Diffstat (limited to 'crypto/sha/sha256.c')
-rw-r--r--crypto/sha/sha256.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/sha/sha256.c b/crypto/sha/sha256.c
index 2f4078f444..21aa5d7d0d 100644
--- a/crypto/sha/sha256.c
+++ b/crypto/sha/sha256.c
@@ -117,6 +117,9 @@ void sha256_block_data_order (SHA256_CTX *ctx, const void *in, size_t num);
#include "md32_common.h"
+#ifdef SHA256_ASM
+void sha256_block (SHA256_CTX *ctx, const void *in, size_t num, int host);
+#else
static const SHA_LONG K256[64] = {
0x428a2f98UL,0x71374491UL,0xb5c0fbcfUL,0xe9b5dba5UL,
0x3956c25bUL,0x59f111f1UL,0x923f82a4UL,0xab1c5ed5UL,
@@ -296,6 +299,7 @@ static void sha256_block (SHA256_CTX *ctx, const void *in, size_t num, int host)
}
#endif
+#endif /* SHA256_ASM */
/*
* Idea is to trade couple of cycles for some space. On IA-32 we save