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

2020-03-07 Thread Niels Möller
Daiki Ueno writes: > 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,

[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