Re: [PATCH net-next v15 09/22] ovpn: implement packet processing

2024-12-16 Thread Sabrina Dubroca
(just a few nits here) 2024-12-11, 22:15:13 +0100, Antonio Quartulli wrote: > +static inline struct ovpn_crypto_key_slot * > +ovpn_crypto_key_id_to_slot(const struct ovpn_crypto_state *cs, u8 key_id) > +{ > + struct ovpn_crypto_key_slot *ks; > + u8 idx; > + > + if (unlikely(!cs)) > +

[PATCH net-next v15 09/22] ovpn: implement packet processing

2024-12-11 Thread Antonio Quartulli
This change implements encryption/decryption and encapsulation/decapsulation of OpenVPN packets. Support for generic crypto state is added along with a wrapper for the AEAD crypto kernel API. Signed-off-by: Antonio Quartulli --- drivers/net/Kconfig| 4 + drivers/net/ovpn/Makefile