]> 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)
commitde79d9aae493a29d02926f396a4fd1a1309436fc
treea1fcb1cc56b05f9009af85bab50babb859ef0834
parentff1469a21df5a2e981dd2f78e96e412fecb3ba59
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