aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-04-28 13:29:37 +0200
committerDave Barach <openvpp@barachs.net>2020-04-29 17:20:47 +0000
commit4ba16a44b1f091bacc32fe6fa9f726e9a0d3b0e7 (patch)
treef8b76516a9087eb3dbee9a5c63c04d7f412cda42 /src/plugins/crypto_native
parenta3108e65f396fa556e75dfe45b04a0bc3b6ec725 (diff)
misc: switch to clang-9
Type: improvement Change-Id: Iebf77a63c0c19b130a3fbd26b5293304a9fed4c1 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/crypto_native')
-rw-r--r--src/plugins/crypto_native/aes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/crypto_native/aes.h b/src/plugins/crypto_native/aes.h
index c2c22c6bd16..762d528d064 100644
--- a/src/plugins/crypto_native/aes.h
+++ b/src/plugins/crypto_native/aes.h
@@ -43,7 +43,7 @@ aes_enc_round (u8x16 a, u8x16 k)
{
#if defined (__AES__)
return (u8x16) _mm_aesenc_si128 ((__m128i) a, (__m128i) k);
-#elif defined (__ARM_FEATURE_AES)
+#elif defined (__ARM_FEATURE_CRYPTO)
return vaesmcq_u8 (vaeseq_u8 (a, u8x16_splat (0))) ^ k;
#endif
}
@@ -79,7 +79,7 @@ aes_enc_last_round (u8x16 a, u8x16 k)
{
#if defined (__AES__)
return (u8x16) _mm_aesenclast_si128 ((__m128i) a, (__m128i) k);
-#elif defined (__ARM_FEATURE_AES)
+#elif defined (__ARM_FEATURE_CRYPTO)
return vaeseq_u8 (a, u8x16_splat (0)) ^ k;
#endif
}
@@ -154,7 +154,7 @@ aes_inv_mix_column (u8x16 a)
{
#if defined (__AES__)
return (u8x16) _mm_aesimc_si128 ((__m128i) a);
-#elif defined (__ARM_FEATURE_AES)
+#elif defined (__ARM_FEATURE_CRYPTO)
return vaesimcq_u8 (a);
#endif
}