Add support for fancy AArch64 assembler code.
[catacomb] / symm / rijndael-base.c
index 01f781d..83a49e9 100644 (file)
@@ -122,6 +122,9 @@ extern setup__functype rijndael_setup_x86ish_aesni;
 #if CPUFAM_ARMEL && HAVE_AS_ARMV8_CRYPTO
 extern setup__functype rijndael_setup_arm_crypto;
 #endif
+#if CPUFAM_ARM64
+extern setup__functype rijndael_setup_arm64_crypto;
+#endif
 
 static setup__functype *pick_setup(void)
 {
@@ -133,6 +136,10 @@ static setup__functype *pick_setup(void)
   DISPATCH_PICK_COND(rijndael_setup, rijndael_setup_arm_crypto,
                     cpu_feature_p(CPUFEAT_ARM_AES));
 #endif
+#if CPUFAM_ARM64
+  DISPATCH_PICK_COND(rijndael_setup, rijndael_setup_arm64_crypto,
+                    cpu_feature_p(CPUFEAT_ARM_AES));
+#endif
   DISPATCH_PICK_FALLBACK(rijndael_setup, simple_setup);
 }