Files
bitcoin/src/crypto
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
..
2016-12-08 17:09:07 -08:00
2020-12-31 09:45:41 +01:00
2021-12-30 19:36:57 +02:00
2019-03-26 18:12:29 +01:00
2020-09-06 18:35:23 -07:00
2022-12-24 23:49:50 +00:00
2022-02-17 03:42:08 +09:00