aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native/main.c
diff options
context:
space:
mode:
authorDamjan Marion <dmarion@me.com>2020-02-12 10:59:14 +0100
committerNeale Ranns <nranns@cisco.com>2020-02-13 12:47:22 +0000
commit622b5ce61971066917cfba9ae795d9cb926f2700 (patch)
tree49ad66aaf27b10d17868bd45b0cc9fe1d4cbf98c /src/plugins/crypto_native/main.c
parent4e96ddaec8837b8c0bd27a75418e033da68e299b (diff)
crypto-native: add AArch64 AES-GCM native implementation
Type: feature Change-Id: I4f96b0af13b875d491704b010328a1814e1dbda1 Signed-off-by: Damjan Marion <dmarion@me.com>
Diffstat (limited to 'src/plugins/crypto_native/main.c')
-rw-r--r--src/plugins/crypto_native/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/crypto_native/main.c b/src/plugins/crypto_native/main.c
index d338ab6d910..45d3d8dfe4e 100644
--- a/src/plugins/crypto_native/main.c
+++ b/src/plugins/crypto_native/main.c
@@ -102,9 +102,10 @@ crypto_native_init (vlib_main_t * vm)
}
#endif
#if __aarch64__
- error = crypto_native_aes_cbc_init_neon (vm);
+ if ((error = crypto_native_aes_cbc_init_neon (vm)))
+ goto error;
- if (error)
+ if ((error = crypto_native_aes_gcm_init_neon (vm)))
goto error;
#endif