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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/crypto/sha256.h b/src/crypto/sha256.h
index dd30fe396f..028ee14345 100644
--- a/src/crypto/sha256.h
+++ b/src/crypto/sha256.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2014-2017 The Bitcoin Core developers
+// Copyright (c) 2014-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
@@ -31,4 +31,11 @@ public:
*/
std::string SHA256AutoDetect();
+/** Compute multiple double-SHA256's of 64-byte blobs.
+ * output: pointer to a blocks*32 byte output buffer
+ * input: pointer to a blocks*64 byte input buffer
+ * blocks: the number of hashes to compute.
+ */
+void SHA256D64(unsigned char* output, const unsigned char* input, size_t blocks);
+
#endif // BITCOIN_CRYPTO_SHA256_H