diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2017-09-26 18:29:42 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2018-05-29 14:05:00 -0700 |
commit | d0c96328833127284574bfef26f96aa2e4afc91a (patch) | |
tree | 8eb834544a3b6611ce5de339f9b0fc2974536189 /src/crypto/sha256.h | |
parent | 57f34630fb6c3e218bd19535ac607008cb894173 (diff) |
Specialized double sha256 for 64 byte inputs
Diffstat (limited to 'src/crypto/sha256.h')
-rw-r--r-- | src/crypto/sha256.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |