mirror of
https://github.com/pmai/sha3.git
synced 2025-12-24 08:44:28 +01:00
Added testing with SHA3 test vectors from Keccak Code Package.
This commit is contained in:
10
README
10
README
@ -133,6 +133,16 @@ The testcases from the Keccak test data can be run with the following
|
||||
form:
|
||||
|
||||
(keccak:test-keccak-msgkat
|
||||
"/Path/To/MsgKatDirectory"
|
||||
(lambda (total-bits bit-rate output-bits message)
|
||||
(declare (ignore total-bits bit-rate))
|
||||
(sha3:sha3-digest-vector message :output-bit-length output-bits :raw-keccak-p t)))
|
||||
|
||||
The adapted SHA-3 testcases from the Keccak Code Package test vectors
|
||||
available under https://github.com/gvanas/KeccakCodePackage/tree/master/TestVectors
|
||||
can be run with the following form:
|
||||
|
||||
(keccak:test-sha3-msgkat
|
||||
"/Path/To/MsgKatDirectory"
|
||||
(lambda (total-bits bit-rate output-bits message)
|
||||
(declare (ignore total-bits bit-rate))
|
||||
|
||||
Reference in New Issue
Block a user