mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 18:12:26 -04:00
crypto: inside-secure - Added support for basic AES-GCM
This patch adds support for the basic AES-GCM AEAD cipher suite. Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
d2d9e6fd6d
commit
3e450886ec
@@ -715,7 +715,8 @@ inline int safexcel_rdesc_check_errors(struct safexcel_crypto_priv *priv,
|
||||
} else if (rdesc->result_data.error_code & BIT(9)) {
|
||||
/* Authentication failed */
|
||||
return -EBADMSG;
|
||||
}
|
||||
} else if (!rdesc->result_data.error_code)
|
||||
return 0;
|
||||
|
||||
/* All other non-fatal errors */
|
||||
return -EINVAL;
|
||||
@@ -1005,6 +1006,7 @@ static struct safexcel_alg_template *safexcel_algs[] = {
|
||||
&safexcel_alg_authenc_hmac_sha384_ctr_aes,
|
||||
&safexcel_alg_authenc_hmac_sha512_ctr_aes,
|
||||
&safexcel_alg_xts_aes,
|
||||
&safexcel_alg_gcm,
|
||||
};
|
||||
|
||||
static int safexcel_register_algorithms(struct safexcel_crypto_priv *priv)
|
||||
|
||||
Reference in New Issue
Block a user