]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/sm4 - export reusable AESNI/AVX functions
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Wed, 18 Aug 2021 03:31:16 +0000 (11:31 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Aug 2021 08:30:18 +0000 (16:30 +0800)
commiteaf2e78680f7fb06bfff377fd267797770861f76
treea1fcb1cc56b05f9009af85bab50babb859ef0834
parent3105204d3eedc53b1621cc1d2f4ca01546fb937b
crypto: x86/sm4 - export reusable AESNI/AVX functions

Export the reusable functions in the SM4 AESNI/AVX implementation,
mainly public functions, which are used to develop the SM4 AESNI/AVX2
implementation, and eliminate unnecessary duplication of code.

At the same time, in order to make the public function universal,
minor fixes was added.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sm4-avx.h [new file with mode: 0644]
arch/x86/crypto/sm4_aesni_avx_glue.c