aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/arch/aarch64
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-02-03 13:10:55 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-03-02 16:13:27 +0200
commitfc9420e52996a30f41ba34e318063243ad2495dd (patch)
treeac44cd2a780709b516a17d66cd4a4b5bfc04124a /platform/linux-generic/arch/aarch64
parent2aa61a7aa6d588a7e9c75f5017b98f08f5558b35 (diff)
api: crypto: remove deprecated crypto authentication algorithms
Remove deprecated crypto authentication algorithms ODP_AUTH_ALG_MD5_96, ODP_AUTH_ALG_SHA256_128, and ODP_AUTH_ALG_AES128_GCM. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/arch/aarch64')
-rw-r--r--platform/linux-generic/arch/aarch64/odp_crypto_armv8.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/platform/linux-generic/arch/aarch64/odp_crypto_armv8.c b/platform/linux-generic/arch/aarch64/odp_crypto_armv8.c
index ff4776763..3bbbf7ccc 100644
--- a/platform/linux-generic/arch/aarch64/odp_crypto_armv8.c
+++ b/platform/linux-generic/arch/aarch64/odp_crypto_armv8.c
@@ -484,7 +484,6 @@ odp_crypto_session_create(const odp_crypto_session_param_t *param,
{
int rc = 0;
odp_crypto_generic_session_t *session;
- int aes_gcm = 0;
if (odp_global_ro.disable.crypto) {
ODP_ERR("Crypto is disabled\n");
@@ -589,26 +588,16 @@ odp_crypto_session_create(const odp_crypto_session_param_t *param,
goto err;
}
- aes_gcm = 0;
-
/* Process based on auth */
switch (param->auth_alg) {
case ODP_AUTH_ALG_NULL:
session->auth.func = null_crypto_routine;
rc = 0;
break;
-#if ODP_DEPRECATED_API
- case ODP_AUTH_ALG_AES128_GCM:
- if (param->cipher_alg == ODP_CIPHER_ALG_AES128_GCM)
- aes_gcm = 1;
- /* Fixed digest tag length with deprecated algo */
- session->p.auth_digest_len = 16;
-#endif
- /* Fallthrough */
case ODP_AUTH_ALG_AES_GCM:
/* AES-GCM requires to do both auth and
* cipher at the same time */
- if (param->cipher_alg == ODP_CIPHER_ALG_AES_GCM || aes_gcm) {
+ if (param->cipher_alg == ODP_CIPHER_ALG_AES_GCM) {
session->auth.func = null_crypto_routine;
rc = 0;
} else {