Skip to content

xfrm: Add support for SM3 and SM4

Xu Jia lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfrm: Add support for SM3 secure hashinclude/uapi/linux/pfkeyv2.h net/xfrm/xfrm_algo.c+21 -00 replies
2/2xfrm: Add support for SM4 symmetric cipher algorithminclude/uapi/linux/pfkeyv2.h net/xfrm/xfrm_algo.c+22 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/2] xfrm: Add support for SM3 and SM4

These patches add xfrm support for SM3 and SM4 algorithms which are cryptographic standards published by China State Cryptography Administration.

SM3 secure hash (OSCCA GM/T 0004-2012 SM3) is based on Merkle-Damgard with a thuncation of 256 bits. It could be used for authentication and random number generation.

SM4 symmetric ciper algorithm (OSCCA GB/T 32097-2016) has at least 128 bits packet length which is similar to AES ciper algorithm. It is suitable for the use of block ciphers in cryptographic applications.

As SM3 and SM4 have already been supported by Linux kernel, after these patches, we can use them with "ip xfrm" tools easily.

Xu Jia (2):
xfrm: Add support for SM3 secure hash
xfrm: Add support for SM4 symmetric cipher algorithm

 include/uapi/linux/pfkeyv2.h |  2 ++
 net/xfrm/xfrm_algo.c         | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
Signature · 1 line
1.8.3.1