From d0c96328833127284574bfef26f96aa2e4afc91a Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 26 Sep 2017 18:29:42 -0700 Subject: Specialized double sha256 for 64 byte inputs --- src/crypto/sha256.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/crypto/sha256.h') diff --git a/src/crypto/sha256.h b/src/crypto/sha256.h index dd30fe396f..31b2b3b3df 100644 --- a/src/crypto/sha256.h +++ b/src/crypto/sha256.h @@ -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 -- cgit v1.2.3