aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/ldp_socket_wrapper.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2022-01-18 15:56:41 +0100
committerDave Wallace <dwallacelf@gmail.com>2023-02-08 01:06:52 +0000
commitc6fe2c3053b7534e38fbf04d4442fc3f166a55c0 (patch)
tree6fecebc05f0955d9b6fc244e6c4624060fad8983 /src/vcl/ldp_socket_wrapper.c
parent2a3d41cea2b854aec11871719eb6bb967089ad33 (diff)
ipsec: fix AES CBC IV generation (CVE-2022-46397)
For AES-CBC, the IV must be unpredictable (see NIST SP800-38a Appendix C). Chaining IVs like is done by ipsecmb and native backends for the VNET_CRYPTO_OP_FLAG_INIT_IV is fully predictable. Encrypt a counter as part of the message, making the (predictable) counter-generated IV unpredictable. Fixes: VPP-2037 Type: fix Change-Id: If4f192d62bf97dda553e7573331c75efa11822ae Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vcl/ldp_socket_wrapper.c')
0 files changed, 0 insertions, 0 deletions