<div class="__aliyun_email_body_block"><div  style="clear:both;"><p  style="box-sizing:border-box;margin-bottom:16.0px;color:#24292e;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;widows:2;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;margin-top:.0px;">This new module implement the SM2 public key algorithm. It was<br  style="box-sizing:border-box;">published by State Encryption Management Bureau, China.<br  style="box-sizing:border-box;">List of specifications for SM2 elliptic curve public key cryptography:</p><ul  style="box-sizing:border-box;padding-left:2.0em;margin-top:.0px;margin-bottom:16.0px;color:#24292e;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;widows:2;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;"><li  style="box-sizing:border-box;margin-left:.0px;">GM/T 0003.1-2012</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">GM/T 0003.2-2012</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">GM/T 0003.3-2012</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">GM/T 0003.4-2012</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">GM/T 0003.5-2012</li></ul><p  style="box-sizing:border-box;margin-top:.0px;margin-bottom:16.0px;color:#24292e;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;widows:2;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;">IETF: <a  href="https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02" rel="nofollow" style="box-sizing:border-box;background-color:initial;color:#0366d6;text-decoration:none;">https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02</a><br  style="box-sizing:border-box;">scctc: <a  href="http://www.gmbz.org.cn/main/bzlb.html" rel="nofollow" style="box-sizing:border-box;background-color:initial;color:#0366d6;text-decoration:none;">http://www.gmbz.org.cn/main/bzlb.html</a></p><ul  style="box-sizing:border-box;padding-left:2.0em;margin-top:.0px;margin-bottom:16.0px;color:#24292e;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;widows:2;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;"><li  style="box-sizing:border-box;margin-left:.0px;">cipher/Makefile.am (EXTRA_libcipher_la_SOURCES): Add sm2.c.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">cipher/ecc-curves.c (domain_parms): Add sm2p256v1 for SM2.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">cipher/pubkey.c [USE_SM2] (pubkey_list): Add _gcry_pubkey_spec_sm2.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">cipher/sm2.c: New.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">configure.ac (available_pubkey_ciphers): Add sm2.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">src/cipher.h: Add declarations for SM2.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">src/fips.c (algos): Add GCRY_PK_SM2.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">src/gcrypt.h.in (gcry_pk_algos): Add algorithm ID for SM2.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">tests/basic.c (check_pubkey): Add test cases for SM2.</li><li  style="box-sizing:border-box;margin-top:.2em;margin-left:.0px;">tests/curves.c (N_CURVES): Update N_CURVES for SM2.</li></ul><p  style="box-sizing:border-box;margin-top:.0px;color:#24292e;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;widows:2;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;margin-bottom:.0px;">Signed-off-by: Tianjia Zhang <a  href="mailto:tianjia.zhang@linux.alibaba.com" style="box-sizing:border-box;background-color:initial;color:#0366d6;text-decoration:none;">tianjia.zhang@linux.alibaba.com</a></p><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"></span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><a  href="https://github.com/gpg/libgcrypt/pull/9">https://github.com/gpg/libgcrypt/pull/9</a></span></div></div>