Closed ukazap closed 2 years ago
@ukazap Thanks! This looks awesome!
@ukazap Oh, I made a slight modification to your changes: I moved all of the legacy KECCAK-related functions to the libdecaf_keccak_sha3
module so there's less confusion over which algorithms are officially supported by NIST's SHA-3 versus legacy variations.
@potatosalad Looks good. Thanks!
Resolves #12.
This commit adds the following legacy Keccak (pre-standardization) algorithms to
libdecaf_sha3:hash/2
:keccak_224
)keccak_256
)keccak_384
)keccak_512
)by changing the
pad
from0x06
to0x01
.The added algorithms are verified against their corresponding test vectors from https://keccak.team/obsolete/KeccakKAT-3.zip.