Closed aewag closed 1 year ago
Of course, nothing prevents you from adding M14 to RustCrypto. But as written here, I would have a 256-bit secure function, similar to K12, that calls TurboSHAKE256 instead of TurboSHAKE128. Given the status on cryptanalysis, I don't see the need for the 14 rounds anymore; having 12 rounds everywhere just seems simpler and cleaner.
Of course, nothing prevents you from adding M14 to RustCrypto. But as written here, I would have a 256-bit secure function, similar to K12, that calls TurboSHAKE256 instead of TurboSHAKE128. Given the status on cryptanalysis, I don't see the need for the 14 rounds anymore; having 12 rounds everywhere just seems simpler and cleaner.
That definitely simplifies the implementation. I will therefore close this PR and better integrate a k12-256
or similar to the k12
crate.
This is a draft to add the
MarsupilamiFourteen
hash function (related issue #1). Asm14
is a variant ofKangarooTwelve
, the implementation can reuse parts of thek12
crate. (Ignore the first commit as it is part of the open PR #353)Therefore, the
k12
crate is modified to export a macro to generate the hasher. Further is thesha3
crate changed to expose a more low-level, but "hazmat", API. Shall this gated behind a "hazmat" feature?~I didnot find yet any test vectors, therefore tests are currently missing, but will be added.~