The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] xfrm: Add support for SM3 and SM4
@ 2021-12-22  9:06 Xu Jia
  2021-12-22  9:06 ` [PATCH net-next 1/2] xfrm: Add support for SM3 secure hash Xu Jia
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Xu Jia @ 2021-12-22  9:06 UTC (permalink / raw)
  To: steffen.klassert, herbert, davem, kuba; +Cc: linux-kernel, netdev

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

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-29 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-22  9:06 [PATCH net-next 0/2] xfrm: Add support for SM3 and SM4 Xu Jia
2021-12-22  9:06 ` [PATCH net-next 1/2] xfrm: Add support for SM3 secure hash Xu Jia
2021-12-22  9:06 ` [PATCH net-next 2/2] xfrm: Add support for SM4 symmetric cipher algorithm Xu Jia
2021-12-29 10:18 ` [PATCH net-next 0/2] xfrm: Add support for SM3 and SM4 Steffen Klassert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox