diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-04-16 03:23:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 03:23:15 -0400 |
commit | 11eee26d76f4c6e8c7f0639187eb68e66bd7d8d4 (patch) | |
tree | 41631fe62b30885dd3bbe6b0672adec3aeefcffc /TestVectors | |
parent | bb3776e0ee6eef63c67428659e0b287cc207da80 (diff) | |
download | cryptopp-git-11eee26d76f4c6e8c7f0639187eb68e66bd7d8d4.tar.gz |
Add LSH-256 and LSH-512 hash functions (GH #1025, PR #1026)
Add South Korea's LSH-256 and LSH-512 families of hash functions.
Diffstat (limited to 'TestVectors')
-rw-r--r-- | TestVectors/all.txt | 3 | ||||
-rw-r--r-- | TestVectors/lsh.txt | 5 | ||||
-rw-r--r-- | TestVectors/lsh256.txt | 12 | ||||
-rw-r--r-- | TestVectors/lsh512.txt | 12 | ||||
-rw-r--r-- | TestVectors/lsh512_256.txt | 6 |
5 files changed, 37 insertions, 1 deletions
diff --git a/TestVectors/all.txt b/TestVectors/all.txt index 2614d7ef..f37f498c 100644 --- a/TestVectors/all.txt +++ b/TestVectors/all.txt @@ -27,6 +27,8 @@ Test: TestVectors/hmac.txt Test: TestVectors/kalyna.txt
Test: TestVectors/keccak.txt
Test: TestVectors/lea.txt
+Test: TestVectors/lsh256.txt
+Test: TestVectors/lsh512.txt
Test: TestVectors/mars.txt
Test: TestVectors/nr.txt
Test: TestVectors/panama.txt
@@ -61,4 +63,3 @@ Test: TestVectors/vmac.txt Test: TestVectors/wake.txt
Test: TestVectors/whrlpool.txt
Test: TestVectors/xts.txt
-
diff --git a/TestVectors/lsh.txt b/TestVectors/lsh.txt new file mode 100644 index 00000000..d3a73fd6 --- /dev/null +++ b/TestVectors/lsh.txt @@ -0,0 +1,5 @@ +AlgorithmType: FileList
+Name: LSH test vectors
+Test: TestVectors/lsh256.txt
+Test: TestVectors/lsh512.txt
+Test: TestVectors/lsh512_256.txt
diff --git a/TestVectors/lsh256.txt b/TestVectors/lsh256.txt new file mode 100644 index 00000000..03da5500 --- /dev/null +++ b/TestVectors/lsh256.txt @@ -0,0 +1,12 @@ +AlgorithmType: MessageDigest
+Name: LSH-224
+Source: https://en.wikipedia.org/wiki/LSH_(hash_function)
+Message: "abc"
+Digest: F7 C5 3B A4 03 4E 70 8E 74 FB A4 2E 55 99 7C A5 12 6B B7 62 36 88 F8 53 42 F7 37 32
+Test: Verify
+#
+Name: LSH-256
+Source: https://en.wikipedia.org/wiki/LSH_(hash_function)
+Message: "abc"
+Digest: 5F BF 36 5D AE A5 44 6A 70 53 C5 2B 57 40 4D 77 A0 7A 5F 48 A1 F7 C1 96 3A 08 98 BA 1B 71 47 41
+Test: Verify
diff --git a/TestVectors/lsh512.txt b/TestVectors/lsh512.txt new file mode 100644 index 00000000..8a1efcd4 --- /dev/null +++ b/TestVectors/lsh512.txt @@ -0,0 +1,12 @@ +AlgorithmType: MessageDigest
+Name: LSH-384
+Source: https://en.wikipedia.org/wiki/LSH_(hash_function)
+Message: "abc"
+Digest: 5F 34 4E FA A0 E4 3C CD 2E 5E 19 4D 60 39 79 4B 4F B4 31 F1 0F B4 B6 5F D4 5E 9D A4 EC DE 0F 27 B6 6E 8D BD FA 47 25 2E 0D 0B 74 1B FD 91 F9 FE
+Test: Verify
+#
+Name: LSH-512
+Source: https://en.wikipedia.org/wiki/LSH_(hash_function)
+Message: "abc"
+Digest: A3 D9 3C FE 60 DC 1A AC DD 3B D4 BE F0 A6 98 53 81 A3 96 C7 D4 9D 9F D1 77 79 56 97 C3 53 52 08 B5 C5 72 24 BE F2 10 84 D4 20 83 E9 5A 4B D8 EB 33 E8 69 81 2B 65 03 1C 42 88 19 A1 E7 CE 59 6D
+Test: Verify
diff --git a/TestVectors/lsh512_256.txt b/TestVectors/lsh512_256.txt new file mode 100644 index 00000000..6bb11b02 --- /dev/null +++ b/TestVectors/lsh512_256.txt @@ -0,0 +1,6 @@ +AlgorithmType: MessageDigest
+Name: LSH-512-256
+Source: https://en.wikipedia.org/wiki/LSH_(hash_function)
+Message: "abc"
+Digest: CD 89 23 10 53 26 02 33 2B 61 3F 1E C1 1A 69 62 FC A6 1E A0 9E CF FC D4 BC F7 58 58 D8 02 ED EC
+Test: Verify
|