[PATCH v2 0/2] Add SM4 symmetric cipher algorithm

Tianjia Zhang tianjia.zhang at linux.alibaba.com
Tue Jun 16 11:09:27 CEST 2020


SM4 (GBT.32907-2016) is a cryptographic standard issued by the
Organization of State Commercial Administration of China (OSCCA)
as an authorized cryptographic algorithms for the use within China.

SMS4 was originally created for use in protecting wireless
networks, and is mandated in the Chinese National Standard for
Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
(GB.15629.11-2003).

Tianjia Zhang (2):
  Add SM4 symmetric cipher algorithm
  tests: Add basic test-vectors for SM4

 cipher/Makefile.am    |   1 +
 cipher/cipher.c       |   8 ++
 cipher/mac-cmac.c     |   6 +
 cipher/mac-internal.h |   3 +
 cipher/mac.c          |  10 +-
 cipher/sm4.c          | 275 ++++++++++++++++++++++++++++++++++++++++++
 configure.ac          |   7 ++
 doc/gcrypt.texi       |   6 +
 src/cipher.h          |   1 +
 src/gcrypt.h.in       |   4 +-
 tests/basic.c         |  99 +++++++++++++++
 11 files changed, 418 insertions(+), 2 deletions(-)
 create mode 100644 cipher/sm4.c

-- 
2.17.1




More information about the Gcrypt-devel mailing list