aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha2_32/sha2_32.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-05-20 11:18:49 -0400
committerJack Lloyd <[email protected]>2017-05-20 11:18:49 -0400
commita710540c20081fcef39c7402f9b7cc54aacbfc63 (patch)
tree99a040f93d17fad863f709e36889ec361684c762 /src/lib/hash/sha2_32/sha2_32.h
parent40c3654ffd631924e8517ab12a734b7715de7b6d (diff)
Change SHA-2 to use a single convention for CPU extn
Diffstat (limited to 'src/lib/hash/sha2_32/sha2_32.h')
-rw-r--r--src/lib/hash/sha2_32/sha2_32.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/hash/sha2_32/sha2_32.h b/src/lib/hash/sha2_32/sha2_32.h
index c65ae449d..ecf2e0ece 100644
--- a/src/lib/hash/sha2_32/sha2_32.h
+++ b/src/lib/hash/sha2_32/sha2_32.h
@@ -64,19 +64,18 @@ class BOTAN_DLL SHA_256 final : public MDx_HashFunction
size_t blocks);
#endif
+#if defined(BOTAN_HAS_SHA2_32_X86)
+ static void compress_digest_x86(secure_vector<uint32_t>& digest,
+ const uint8_t input[],
+ size_t blocks);
+#endif
+
void compress_n(const uint8_t[], size_t blocks) override;
void copy_out(uint8_t[]) override;
secure_vector<uint32_t> m_digest;
};
-#if defined(BOTAN_HAS_SHA2_32_X86)
-/*
-* SHA-256 compression using Goldmont x86 extensions. Not for public consumption.
-*/
-void sha2_compress_x86(uint32_t digest[8], const uint8_t input[], size_t blocks);
-#endif
-
}
#endif