wireguard: notify key changes to crypto engine 46/40046/3
authorLijian Zhang <Lijian.Zhang@arm.com>
Wed, 8 Nov 2023 09:09:10 +0000 (09:09 +0000)
committerFan Zhang <fanzhang.oss@gmail.com>
Mon, 19 Feb 2024 15:36:36 +0000 (15:36 +0000)
commit6f8252e83c17efa859cf937683b1caf723c439f2
tree10e5d1bd5ba25cecc60e12cd48f1987a614f8fba
parentff71939c30ae81241808da1843e82cf2dfa92344
wireguard: notify key changes to crypto engine

This is a prerequisite patch for the following openssl API optimization
patch, which tries to offload openssl ctx init and key expansion work to
the initialization stage.

Wireguard adds crypto keys via vnet_crypto_key_add (), and whenever it
modifies the keys, the underneath openssl crypto engine shoud be informed
of the changes to update the openssl ctx.

Type: feature
Signed-off-by: Lijian Zhang <Lijian.Zhang@arm.com>
Change-Id: I3e8f033f3f77eebcecfbd06e8e3bbbfdc95a50e2
src/plugins/wireguard/wireguard_noise.c
src/vnet/crypto/crypto.c
src/vnet/crypto/crypto.h