OSDN Git Service

crypto: arm64/sm4 - export reusable CE acceleration functions
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Thu, 27 Oct 2022 06:55:00 +0000 (14:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Nov 2022 09:34:42 +0000 (17:34 +0800)
commit45089dbe5952e9afbe2a3b3054105f2a694930f1
tree7e9400a2e33d0ab7c7ec5451747940a411c68f09
parentcb9ba02b07d18172c6a6dcc69410c56482903230
crypto: arm64/sm4 - export reusable CE acceleration functions

In the accelerated implementation of the SM4 algorithm using the Crypto
Extension instructions, there are some functions that can be reused in
the upcoming accelerated implementation of the GCM/CCM mode, and the
CBC/CFB encryption is reused in the optimized implementation of SVESM4.

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