Re: [PATCH v21 09/24] ovpn: implement packet processing

2025-03-05 Thread Sabrina Dubroca
2025-03-05, 00:35:09 +0100, Antonio Quartulli wrote: > On 04/03/2025 20:02, Sabrina Dubroca wrote: > > 2025-03-04, 01:33:39 +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) >

Re: [PATCH v21 09/24] ovpn: implement packet processing

2025-03-04 Thread Antonio Quartulli
On 04/03/2025 20:02, Sabrina Dubroca wrote: 2025-03-04, 01:33:39 +0100, Antonio Quartulli wrote: +struct crypto_aead *ovpn_aead_init(const char *title, const char *alg_name, + const unsigned char *key, + unsigned int keylen) nit

Re: [PATCH v21 09/24] ovpn: implement packet processing

2025-03-04 Thread Sabrina Dubroca
2025-03-04, 01:33:39 +0100, Antonio Quartulli wrote: > +struct crypto_aead *ovpn_aead_init(const char *title, const char *alg_name, > +const unsigned char *key, > +unsigned int keylen) nit: static? I don't see it used outside this fil

[PATCH v21 09/24] ovpn: implement packet processing

2025-03-03 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