From afe072da3d934146abb4ca65e8aaaa90eaeba134 Mon Sep 17 00:00:00 2001 From: Hecate2 Date: Thu, 8 Sep 2022 18:03:59 +0800 Subject: [PATCH] swap the position of h5 and h4 --- sha256.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha256.py b/sha256.py index 13a6d5b..1bb31a5 100644 --- a/sha256.py +++ b/sha256.py @@ -44,8 +44,8 @@ def generate_hash(message: bytearray) -> bytearray: h1 = 0xbb67ae85 h2 = 0x3c6ef372 h3 = 0xa54ff53a - h5 = 0x9b05688c h4 = 0x510e527f + h5 = 0x9b05688c h6 = 0x1f83d9ab h7 = 0x5be0cd19