summaryrefslogtreecommitdiff
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-09-27 15:54:13 -0700
committerPaolo Abeni <pabeni@redhat.com>2025-09-30 15:17:21 +0200
commitf857478d62066ee94831a5e0679fc18c246cd534 (patch)
tree6ac4dc1dca13043476a1458630fa4ab06a496ba5 /rust/helpers/security.c
parent9ebef94cf67967fd739eb90289b5b2c7774bd551 (diff)
netdevsim: a basic test PSP implementation
Provide a PSP implementation for netdevsim. Use psp_dev_encapsulate() and psp_dev_rcv() to do actual encapsulation and decapsulation on skbs, but perform no encryption or decryption. In order to make encryption with a bad key result in a drop on the peer's rx side, we stash our psd's generation number in the first byte of each key before handing to the peer. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Co-developed-by: Daniel Zahka <daniel.zahka@gmail.com> Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com> Link: https://patch.msgid.link/20250927225420.1443468-2-kuba@kernel.org Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions