Add crypto pubkey SM2

Tianjia Zhang tianjia.zhang at linux.alibaba.com
Fri Dec 20 08:20:11 CET 2019


This new module implement the SM2 public key algorithm. It was
published by State Encryption Management Bureau, China.
List of specifications for SM2 elliptic curve public key cryptography:
GM/T 0003.1-2012
GM/T 0003.2-2012
GM/T 0003.3-2012
GM/T 0003.4-2012
GM/T 0003.5-2012
IETF: https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
scctc: http://www.gmbz.org.cn/main/bzlb.html
cipher/Makefile.am (EXTRA_libcipher_la_SOURCES): Add sm2.c.
cipher/ecc-curves.c (domain_parms): Add sm2p256v1 for SM2.
cipher/pubkey.c [USE_SM2] (pubkey_list): Add _gcry_pubkey_spec_sm2.
cipher/sm2.c: New.
configure.ac (available_pubkey_ciphers): Add sm2.
src/cipher.h: Add declarations for SM2.
src/fips.c (algos): Add GCRY_PK_SM2.
src/gcrypt.h.in (gcry_pk_algos): Add algorithm ID for SM2.
tests/basic.c (check_pubkey): Add test cases for SM2.
tests/curves.c (N_CURVES): Update N_CURVES for SM2.
Signed-off-by: Tianjia Zhang tianjia.zhang at linux.alibaba.com

https://github.com/gpg/libgcrypt/pull/9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20191220/1a40baf8/attachment-0001.html>


More information about the Gcrypt-devel mailing list