From 2991c91d88f3d17ac6b38bddfa6f1b6b8d835c0f Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 13 Jul 2017 23:26:04 -0700 Subject: Add SHA256 dispatcher --- src/crypto/sha256.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/crypto/sha256.h') diff --git a/src/crypto/sha256.h b/src/crypto/sha256.h index 127e62a228..aa4f3972cc 100644 --- a/src/crypto/sha256.h +++ b/src/crypto/sha256.h @@ -7,6 +7,7 @@ #include #include +#include /** A hasher class for SHA-256. */ class CSHA256 @@ -25,4 +26,9 @@ public: CSHA256& Reset(); }; +/** Autodetect the best available SHA256 implementation. + * Returns the name of the implementation. + */ +std::string SHA256AutoDetect(); + #endif // BITCOIN_CRYPTO_SHA256_H -- cgit v1.2.3