This series simplifies and optimizes the HMAC calculations in IPv6 Segment Routing. Changed in v2: - Rebased on top of latest net-next. Dropped "ipv6: sr: Fix MAC comparison to be constant-time" since it was upstreamed already. Moved key preparation to seg6_hmac_info_add(). Eric Biggers (2): ipv6: sr: Use HMAC-SHA1 and HMAC-SHA256 library functions ipv6: sr: Prepare HMAC key ahead of time include/net/seg6_hmac.h | 20 ++-- net/ipv6/Kconfig | 7 +- net/ipv6/seg6.c | 7 -- net/ipv6/seg6_hmac.c | 211 ++++++---------------------------------- 4 files changed, 42 insertions(+), 203 deletions(-) base-commit: b1c92cdf5af3198e8fbc1345a80e2a1dff386c02 -- 2.50.1