Closed jvanbruegge closed 2 years ago
Since cryptonite
does not provide an API to support chacha poly, it is not supported currently.
Volunteers took over cryptonite
recently, so the situation would change.
It doesn't? Isnt that the correct cipher? https://hackage.haskell.org/package/cryptonite-0.29/docs/Crypto-Cipher-ChaChaPoly1305.html
The problem I see is that it is not a stateless cipher and I have no idea where to thread the state through
See https://www.rfc-editor.org/rfc/rfc9001.html#name-chacha20-based-header-prote. In QUIC, we need to specify the counter. The counter is hard-coded in crypotnite
.
Ah, I see. Thank you!
Running the QUIC connection with
defaultClientConfig { ccCiphers = [cipher_TLS13_CHACHA20POLY1305_SHA256] }
results in:Looking at that file, it is not clear to me how to submit a PR to fix this because of the required State