aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha256.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-07-13 23:26:04 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-07-20 09:03:53 -0700
commit2991c91d88f3d17ac6b38bddfa6f1b6b8d835c0f (patch)
tree38783e7e46a9fbf4b038236f2cde834afe1a6fdb /src/crypto/sha256.h
parent4d50f38fe05374342b4b55953d188fd50d422663 (diff)
downloadbitcoin-2991c91d88f3d17ac6b38bddfa6f1b6b8d835c0f.tar.xz
Add SHA256 dispatcher
Diffstat (limited to 'src/crypto/sha256.h')
-rw-r--r--src/crypto/sha256.h6
1 files changed, 6 insertions, 0 deletions
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 <stdint.h>
#include <stdlib.h>
+#include <string>
/** 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