Files
bitcoin/src/test/fuzz
Pieter Wuille 511a8d406e crypto: Implement RFC8439-compatible variant of ChaCha20
There are two variants of ChaCha20 in use. The original one uses a 64-bit
nonce and a 64-bit block counter, while the one used in RFC8439 uses a
96-bit nonce and 32-bit block counter. This commit changes the interface
to use the 96/32 split (but automatically incrementing the first 32-bit
part of the nonce when the 32-bit block counter overflows, so to retain
compatibility with >256 GiB output).

Simultaneously, also merge the SetIV and Seek64 functions, as we almost
always call both anyway.

Co-authored-by: dhruv <856960+dhruv@users.noreply.github.com>
2023-07-07 17:16:27 -04:00
..
2021-12-30 19:36:57 +02:00
2023-06-23 14:22:39 -04:00
2023-04-05 11:43:42 +01:00
2023-03-23 19:38:38 +01:00
2023-01-26 10:44:05 +01:00
2022-12-24 23:49:50 +00:00
2023-06-22 13:54:17 +02:00
2023-01-26 10:44:05 +01:00
2023-01-26 10:44:05 +01:00
2022-12-24 23:49:50 +00:00