]> git.ipfire.org Git - thirdparty/nettle.git/commit
chacha: add function to set initial block counter
authorDaiki Ueno <dueno@redhat.com>
Mon, 9 Mar 2020 12:01:17 +0000 (13:01 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 9 Mar 2020 18:08:12 +0000 (19:08 +0100)
commita9894036fc5e3c972d751ea28e64e23ddc77fc37
tree873173e84238d4534089c944b409cca89076eb77
parent84284d37751241703e254f3277be9d57d788714a
chacha: add function to set initial block counter

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>
chacha-set-nonce.c
chacha.h
nettle.texinfo
testsuite/chacha-test.c