Skip to content

xfrm: Custom truncation lengths for authentication algorithms

Martin Willi linux-crypto netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xfrm: Define new XFRM netlink auth attribute with specified truncation bitsinclude/linux/xfrm.h+8 -00 replies
2/3xfrm: Store aalg in xfrm_state with a user specified truncation lengthinclude/net/xfrm.h net/xfrm/xfrm_state.c net/xfrm/xfrm_user.c+133 -100 replies
3/3xfrm: Use the user specified truncation length in ESP and AHnet/ipv4/ah4.c net/ipv4/esp4.c net/ipv6/ah6.c +1 more+4 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] xfrm: Custom truncation lengths for authentication algorithms

The following patchset adds support for defining truncation lengths for authentication algorithms in userspace. The main purpose for this is to support SHA256 in IPsec using the standardized 128 bit instead of the currently used 96 bit truncation.

Martin Willi (3):
xfrm: Define new XFRM netlink auth attribute with specified
truncation bits
xfrm: Store aalg in xfrm_state with a user specified truncation
length
xfrm: Use the user specified truncation length in ESP and AH

 include/linux/xfrm.h  |    8 +++
 include/net/xfrm.h    |   12 ++++-
 net/ipv4/ah4.c        |    2 +-
 net/ipv4/esp4.c       |    2 +-
 net/ipv6/ah6.c        |    2 +-
 net/ipv6/esp6.c       |    2 +-
 net/xfrm/xfrm_state.c |    2 +-
 net/xfrm/xfrm_user.c  |  129 ++++++++++++++++++++++++++++++++++++++++++++++---
 8 files changed, 145 insertions(+), 14 deletions(-)