summaryrefslogtreecommitdiff
path: root/chacha-set-nonce.c
Commit message (Collapse)AuthorAgeFilesLines
* chacha: add variant that treats counter value as 32-bitDaiki Ueno2020-03-091-0/+6
| | | | | | | | | | | The ChaCha-Poly1305 implementation previously used the chacha_crypt function that assumes the block counter is 64-bit long, while RFC 8439 defines that the counter is 32-bit long. Although this should be fine as long as up to 256 gigabytes of data is encrypted with the same key, it would be nice to use a separate functions (chacha_set_counter32 and chacha_crypt32) that assume the counter is 32-bit long. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* chacha: add function to set initial block counterDaiki Ueno2020-03-091-0/+7
| | | | | | | | | | | The ChaCha20 based header protection algorithm in QUIC requires a way to set the initial value of counter: https://quicwg.org/base-drafts/draft-ietf-quic-tls.html#name-chacha20-based-header-prote This will add a new function chacha_set_counter, which takes an 8-octet initial value of the block counter. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* New function chacha_set_nonce96.Niels Möller2015-01-301-0/+9
|
* Update copyright headers for dual licensing.Niels Möller2014-04-121-26/+34
|
* Renamed chacha_set_iv to chacha_set_nonce.Niels Möller2014-02-101-0/+53