]> git.kaiwu.me - haproxy.git/commit
MEDIUM: quic: add key argument to header protection crypto functions
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 25 Jul 2024 08:33:29 +0000 (10:33 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 25 Jul 2024 11:45:39 +0000 (13:45 +0200)
commit177c84808c11d59764dc6b05e78033f31918505f
tree609266d148286d6e1c83cf88c0d47bae0d5b5697
parentd55a297b8541d5a2c593a127e0305161d284ce61
MEDIUM: quic: add key argument to header protection crypto functions

In order to prepare the code for using Chacha20 with the EVP_AEAD API,
both quic_tls_hp_decrypt() and quic_tls_hp_encrypt() need an extra key
argument.

Indeed Chacha20 does not exists as an EVP_CIPHER in AWS-LC, so the key
won't be embedded into the EVP_CIPHER_CTX, so we need an extra parameter
to use it.
include/haproxy/quic_tls.h
src/quic_rx.c
src/quic_tls.c
src/quic_tx.c