Skip to content

ipv6: sr: Simplify and optimize HMAC calculations

Eric Biggers linux-crypto netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesApplied 2/2

Changes in v2 from the cover letter

- 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().

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ipv6: sr: Use HMAC-SHA1 and HMAC-SHA256 library functionsinclude/net/seg6_hmac.h net/ipv6/Kconfig net/ipv6/seg6.c +1 more+30 -2030 repliesApplied
2/2ipv6: sr: Prepare HMAC key ahead of timeinclude/net/seg6_hmac.h net/ipv6/seg6_hmac.c+17 -50 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/2] ipv6: sr: Simplify and optimize HMAC calculations

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

Signature · 1 line
2.50.1