aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha256.h
diff options
context:
space:
mode:
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