providers: Add SM4 GCM implementation
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Wed, 1 Sep 2021 08:54:15 +0000 (16:54 +0800)
committerPauli <pauli@openssl.org>
Tue, 28 Sep 2021 09:27:58 +0000 (19:27 +1000)
commitc2ee608a234340aa735f894f8d84ead0ce58286e
tree3da7ae032308f490e5ea19bab7e5b973db3bff39
parentd8f6c533cfcbcad350c9cfb2c112eb9f938ba83c
providers: Add SM4 GCM implementation

The GCM mode of the SM4 algorithm is specifieded by RFC8998.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16491)
providers/defltprov.c
providers/implementations/ciphers/build.info
providers/implementations/ciphers/cipher_sm4_ccm.c [new file with mode: 0644]
providers/implementations/ciphers/cipher_sm4_ccm.h [new file with mode: 0644]
providers/implementations/ciphers/cipher_sm4_ccm_hw.c [new file with mode: 0644]
providers/implementations/ciphers/cipher_sm4_gcm.c [new file with mode: 0644]
providers/implementations/ciphers/cipher_sm4_gcm.h [new file with mode: 0644]
providers/implementations/ciphers/cipher_sm4_gcm_hw.c [new file with mode: 0644]
providers/implementations/include/prov/implementations.h
providers/implementations/include/prov/names.h
test/recipes/30-test_evp_data/evpciph_sm4.txt