SHA1.txt at [feef0d0cef]
EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA

File tests/test_vectors/Hash/SHA1.txt artifact 5945652b07 part of check-in feef0d0cef


# SHA1
# From https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/example-values
# and RFC 6234 SHA and SHA-based HMAC and HKDF

[b = 64]
[L = 20]

Len = 0
Msg = ""
MD = da39a3ee5e6b4b0d3255bfef95601890afd80709

Len = 3
Msg = "abc"
MD = a9993e364706816aba3e25717850c26c9cd0d89d

Len = 56
Msg = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
MD = 84983e441c3bd26ebaae4aa1f95129e5e54670f1

Len = 112
Msg = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"
MD = a49b2446a02c645bf419f995b67091253a04a259

Len = 1000000
Repeat = 1000000
Msg = "a"
MD = 34aa973cd4c4daa4f61eeb2bdbad27316534016f

Len = 1073741824
Repeat = 16777216
Msg = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmno"
MD = 7789f0c9ef7bfc40d93311143dfbe69e2017f592

Len = 43
Msg = "The quick brown fox jumps over the lazy dog"
MD = 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12

# RFC 6234 Test Case 1
Len = 3
Msg = "abc"
MD = a9993e364706816aba3e25717850c26c9cd0d89d

# RFC 6234 Test Case 2
Len = 56
Msg = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
MD = 84983e441c3bd26ebaae4aa1f95129e5e54670f1

# RFC 6234 Test Case 3
Len = 1000000
Repeat = 1000000
Msg = "a"
MD = 34aa973cd4c4daa4f61eeb2bdbad27316534016f

# RFC 6234 Test Case 4
Len = 640
Repeat = 10
Msg = "0123456701234567012345670123456701234567012345670123456701234567"
MD = dea356a2cddd90c7a7ecedc5ebb563934f460452

# RFC 6234 Test Case 6
Len = 1
Msg = 5e
MD = 5e6f80a34a9798cafc6a5db96cc57ba4c4db59c2

# RFC 6234 Test Case 8
Len = 16
Msg = 9a7dfdf1ecead06ed646aa55fe757146
MD = 82abff6605dbe1c17def12a394fa22a82b544a35

# RFC 6234 Test Case 10
Len = 163
Msg = f78f92141bcd170ae89b4fba15a1d59f3fd84d223c9251bdacbbae61d05ed115a06a7ce117b7beead24421ded9c32592bd57edeae39c39fa1fe8946a84d0cf1f7beead1713e2e0959897347f67c80b0400c209815d6b10a683836fd5562a56cab1a28e81b6576654631cf16566b86e3b33a108b05307c00aff14a768ed7350606a0f85e6a91d396f5b5cbe577f9b38807c7d523d6d792f6ebc24a4ecf2b3a427cdbbfb
MD = cb0082c8f197d260991ba6a460e76e202bad27b3