Skip to content

Commit

Permalink
Merge pull request #58 from richardschneider/shake
Browse files Browse the repository at this point in the history
feat(MultiHash): implement shake
  • Loading branch information
richardschneider authored May 2, 2018
2 parents b632cb6 + 2fbd4a0 commit da795b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 18 additions & 0 deletions test/Cryptography/HashingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,24 @@ class TestVector
Input = "37d518",
Digest = "4aa96b1547e6402c0eee781acaa660797efe26ec00b4f2e0aec4a6d10688dd64cbd7f12b3b6c7f802e2096c041208b9289aec380d1a748fdfcd4128553d781e3"
},
new TestVector
{
Algorithm = "shake-128",
Input = "",
Digest = "7f9c2ba4e88f827d616045507605853e"
},
new TestVector
{
Algorithm = "shake-128",
Input = "0e",
Digest = "fa996dafaa208d72287c23bc4ed4bfd5"
},
new TestVector
{
Algorithm = "shake-128",
Input = "fd6dd3b63dc7b9664895c51fc17c57d59c349621dd3c5694a3cc404c660c2cc47d83d2f0e3d2a28a3aa2f0a710db54",
Digest = "c8db32bf81bf75621db30264750954f8"
},
};

/// <summary>
Expand Down
6 changes: 2 additions & 4 deletions test/MultiHashTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,14 @@ class TestVector
Output = "171c0da73a89549018df311c0a63250e008f7be357f93ba4e582aaea32b8"
},
new TestVector {
Ignore = true, // TODO
Algorithm = "shake-128",
Input = "beep boop",
Output = "18205fe422311f770743c2e0d86bcca092111cbce85487212829739c3c3723776e5a"
Output = "18105fe422311f770743c2e0d86bcca09211"
},
new TestVector {
Ignore = true, // TODO
Algorithm = "shake-256",
Input = "beep boop",
Output = "194059feb5565e4f924baef74708649fed376d63948a862322ed763ecf093b63b38b0955908c099c63dda73ee469c31b1456cec95e325bd868d0ce0c0135f5a54411"
Output = "192059feb5565e4f924baef74708649fed376d63948a862322ed763ecf093b63b38b"
},
new TestVector {
Algorithm = "keccak-224",
Expand Down

0 comments on commit da795b7

Please sign in to comment.