[PATCH 1/2] chacha: add function to set initial block counter

2020-03-06 Thread Daiki Ueno
From: Daiki Ueno 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

[PATCH 2/2] doc: match ChaCha-Poly1305 documentation to the implementation

2020-03-06 Thread Daiki Ueno
From: Daiki Ueno While the documentation said the nonce size is 16 octets, the implementation actually assumed 12 octets following RFC 7539. Signed-off-by: Daiki Ueno --- nettle.texinfo | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/nettle.texinfo