Closed aewag closed 1 year ago
@aewag nice! Do you plan to use this in the k12
PR?
@aewag nice! Do you plan to use this in the
k12
PR?
Yes, that's planned, and I hope I'll find the time to finish the k12
PR soon.
@tarcieri I added the test vectors as .bbl
files and updated the tests. With this the PR is ready for review. :)
This adds TurboSHAKE128 and TurboSHAKE256 to the sha3 crate. It is based on the specification document and the IETF draft.
I changed the
Sha3State
to be based by default on aKeccakF1600
permutation. But the round_count can be overwritten using new() to base theSha3State
onKeccakP1600
. To reflect this change, I renamed the functionapply_f
topermute
.