[PATCH 1/1] Add SM4 symmetric cipher algorithm

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



On 2020/6/14 5:34, Jussi Kivilinna wrote:
> On 9.6.2020 20.59, Jussi Kivilinna wrote:
>> Hello,
>>
>> Patch looks mostly good. I have add few comments below.
>>
>> On 8.6.2020 14.00, Tianjia Zhang via Gcrypt-devel wrote:
>>> * cipher/Makefile.am (EXTRA_libcipher_la_SOURCES): Add sm4.c.
>>> * cipher/cipher.c (cipher_list, cipher_list_algo301):
>>> Add _gcry_cipher_spec_sm4.
>>> * cipher/sm4.c: New.
>>> * configure.ac (available_ciphers): Add sm4.
>>> * src/cipher.h: Add declarations for SM4.
>>> * src/gcrypt.h.in (gcry_cipher_algos): Add algorithm ID for SM4.
>>> * tests/basic.c (check_ciphers): Add sm4 check.
>>
>> Please also add GCRY_MAC_CMAC_SM4 support in mac.c/mac-cmac.c.
>>
> 
> Oh, and please add also SM4 to documentation, doc/gcrypt.texi.
> 
> -Jussi
> 

Thanks for your suggestion, I have submitted v2 patch.

Thanks and best,
Tianjia



More information about the Gcrypt-devel mailing list