SNAPKITTYWEST commited on
Commit
14d22e4
·
verified ·
1 Parent(s): ed44354

Mirror from SNAPKITTYWEST: sha256/vectors.py

Browse files
Files changed (1) hide show
  1. sha256/vectors.py +13 -0
sha256/vectors.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # sha256/vectors.py — canonical NIST test vectors
2
+
3
+ VECTORS = [
4
+ # (input_bytes, expected_hex)
5
+ (b"",
6
+ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),
7
+ (b"abc",
8
+ "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"),
9
+ (b"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
10
+ "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"),
11
+ (b"a" * 1000000,
12
+ "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0"),
13
+ ]