mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-26 03:37:12 +09:00
28 lines
875 B
Plaintext
28 lines
875 B
Plaintext
=== Keccak-1600 Core Function Tests ===
|
|
|
|
Test 1: crypto_core_keccak1600_init
|
|
PASS: State initialized to zeros
|
|
|
|
Test 2: crypto_core_keccak1600_xor_bytes and extract_bytes
|
|
PASS: XOR and extract work correctly
|
|
|
|
Test 3: Keccak-f[1600] (24 rounds) - Zero input
|
|
PASS: Keccak-f[1600] zero
|
|
|
|
Test 4: Keccak-f[1600] (24 rounds) - Pattern 0xa3 input
|
|
PASS: Keccak-f[1600] pattern
|
|
|
|
Test 5: Keccak-p[1600,12] (12 rounds) - Zero input
|
|
PASS: Keccak-p[1600,12] zero
|
|
|
|
Test 6: Verify 12-round and 24-round differ
|
|
PASS: 12-round and 24-round produce different outputs
|
|
First difference at byte 0: 12-round=0x17, 24-round=0xe7
|
|
|
|
Test 7: Double permutation consistency
|
|
After 24+24 rounds: 3ccb6ef94d955c2d6db55770d02c336a6c6bd770128d3d0994d06955b2d9208a
|
|
After 12+12 rounds: 048cbb36dc66034bc96a2de69835165f46e73b55de051b436c7a6154c9469f48
|
|
|
|
=== Test Summary ===
|
|
All tests PASSED!
|