OpenCloudOS-Kernel/drivers/crypto/inside-secure
Herbert Xu 63cdd870ab crypto: inside-secure - Reuse code in safexcel_hmac_alg_setkey
The code in the current implementation of safexcel_hmac_alg_setkey
can be reused by safexcel_cipher.  This patch does just that by
renaming the previous safexcel_hmac_setkey to __safexcel_hmac_setkey.
The now-shared safexcel_hmac_alg_setkey becomes safexcel_hmac_setkey
and a new safexcel_hmac_alg_setkey has been added for use by ahash
transforms.

As a result safexcel_aead_setkey's stack frame has been reduced by
about half in size, or about 512 bytes.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-09-25 17:48:13 +10:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
safexcel.c crypto: inside-secure - Add support for EIP197 with output classifier 2020-09-18 17:20:12 +10:00
safexcel.h crypto: inside-secure - Reuse code in safexcel_hmac_alg_setkey 2020-09-25 17:48:13 +10:00
safexcel_cipher.c crypto: inside-secure - Reuse code in safexcel_hmac_alg_setkey 2020-09-25 17:48:13 +10:00
safexcel_hash.c crypto: inside-secure - Reuse code in safexcel_hmac_alg_setkey 2020-09-25 17:48:13 +10:00
safexcel_ring.c crypto: inside-secure - Prevent missing of processing errors 2020-09-18 17:20:10 +10:00