mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
crypto: safexcel - Add support for authenc(hmac(md5),*) suites
This patch adds support for the following AEAD ciphersuites: - authenc(hmac(md5),cbc(aes)) - authenc(hmac(md5),cbc(des))) - authenc(hmac(md5),cbc(des3_ede)) - authenc(hmac(md5),rfc3686(ctr(aes))) The first three ciphersuites were tested using testmgr and the recently sent test vectors. They passed self-tests. This is enhanced version of the patch found in the mtk-openwrt-feeds repo. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Reviewed-by: Antoine Tenart <atenart@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
c75daa3730
commit
f050e4209a
@@ -1204,11 +1204,13 @@ static struct safexcel_alg_template *safexcel_algs[] = {
|
||||
&safexcel_alg_hmac_sha256,
|
||||
&safexcel_alg_hmac_sha384,
|
||||
&safexcel_alg_hmac_sha512,
|
||||
&safexcel_alg_authenc_hmac_md5_cbc_aes,
|
||||
&safexcel_alg_authenc_hmac_sha1_cbc_aes,
|
||||
&safexcel_alg_authenc_hmac_sha224_cbc_aes,
|
||||
&safexcel_alg_authenc_hmac_sha256_cbc_aes,
|
||||
&safexcel_alg_authenc_hmac_sha384_cbc_aes,
|
||||
&safexcel_alg_authenc_hmac_sha512_cbc_aes,
|
||||
&safexcel_alg_authenc_hmac_md5_ctr_aes,
|
||||
&safexcel_alg_authenc_hmac_sha1_ctr_aes,
|
||||
&safexcel_alg_authenc_hmac_sha224_ctr_aes,
|
||||
&safexcel_alg_authenc_hmac_sha256_ctr_aes,
|
||||
@@ -1240,11 +1242,13 @@ static struct safexcel_alg_template *safexcel_algs[] = {
|
||||
&safexcel_alg_hmac_sha3_256,
|
||||
&safexcel_alg_hmac_sha3_384,
|
||||
&safexcel_alg_hmac_sha3_512,
|
||||
&safexcel_alg_authenc_hmac_md5_cbc_des3_ede,
|
||||
&safexcel_alg_authenc_hmac_sha1_cbc_des3_ede,
|
||||
&safexcel_alg_authenc_hmac_sha256_cbc_des3_ede,
|
||||
&safexcel_alg_authenc_hmac_sha224_cbc_des3_ede,
|
||||
&safexcel_alg_authenc_hmac_sha512_cbc_des3_ede,
|
||||
&safexcel_alg_authenc_hmac_sha384_cbc_des3_ede,
|
||||
&safexcel_alg_authenc_hmac_md5_cbc_des,
|
||||
&safexcel_alg_authenc_hmac_sha1_cbc_des,
|
||||
&safexcel_alg_authenc_hmac_sha256_cbc_des,
|
||||
&safexcel_alg_authenc_hmac_sha224_cbc_des,
|
||||
|
||||
Reference in New Issue
Block a user