aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2022-10-27 11:02:11 +0100
committerglozow <gloriajzhao@gmail.com>2022-10-27 11:02:22 +0100
commit2242de16cc590c0cc115bf9b54679521b9be7bbd (patch)
tree50f5c224c811d1a5adc4b452a47904a72e2907ea
parentec92d23fb8922c37f678589d743ca214f966cd75 (diff)
parent0cc23fc60374512b3c4be888d98a7dbdd3a0c931 (diff)
Merge bitcoin/bitcoin#26394: Fix typo in comment SHA256->SHA512
0cc23fc60374512b3c4be888d98a7dbdd3a0c931 Fix typo in comment SHA256->SHA512 (Elichai Turkel) Pull request description: The comment says it's the SHA-256 state, while it's actually the SHA-512 state ACKs for top commit: andrewtoth: ACK 0cc23fc60374512b3c4be888d98a7dbdd3a0c931 aureleoules: ACK 0cc23fc60374512b3c4be888d98a7dbdd3a0c931 Tree-SHA512: 4e390ceefb847d3bbe4f5caab390a4fdd14892fe443f58c32b08b3444fccd611cff22938c3dfa611dfd2497736f779fae4165497b4208e48aa8fc9d2236f943b
-rw-r--r--src/crypto/sha512.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/sha512.cpp b/src/crypto/sha512.cpp
index 85a7bbcb53..59b79609dd 100644
--- a/src/crypto/sha512.cpp
+++ b/src/crypto/sha512.cpp
@@ -30,7 +30,7 @@ void inline Round(uint64_t a, uint64_t b, uint64_t c, uint64_t& d, uint64_t e, u
h = t1 + t2;
}
-/** Initialize SHA-256 state. */
+/** Initialize SHA-512 state. */
void inline Initialize(uint64_t* s)
{
s[0] = 0x6a09e667f3bcc908ull;