-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Sorry for disturbing again :-)
It seems you use ChaCha8 instead of ChaCha20. This loop performs 2 rounds 4 times = 8 instead of 20.
for (i = 8;i > 0;i -= 2) {
QUARTERROUND( 0, 4, 8,12)
QUARTERROUND( 1, 5, 9,13)
QUARTERROUND( 2, 6,10,14)
QUARTERROUND( 3, 7,11,15)
QUARTERROUND( 0, 5,10,15)
QUARTERROUND( 1, 6,11,12)
QUARTERROUND( 2, 7, 8,13)
QUARTERROUND( 3, 4, 9,14)
}
It seems you took the reference code frome there:
https://cr.yp.to/streamciphers/timings/estreambench/submissions/salsa20/chacha8/ref/chacha.c
Notice, chacha8 in the URL path.
Metadata
Metadata
Assignees
Labels
No labels