X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/blobdiff_plain/f013a4f2faa9d42d153daded532767f6685c38c0..26e182fc3ae2a40dc7d52bab2318d8d1837dfeee:/symm/rijndael-base.c diff --git a/symm/rijndael-base.c b/symm/rijndael-base.c index b5490c1d..01f781df 100644 --- a/symm/rijndael-base.c +++ b/symm/rijndael-base.c @@ -119,12 +119,19 @@ CPU_DISPATCH(static, EMPTY, void, setup, #if CPUFAM_X86 || CPUFAM_AMD64 extern setup__functype rijndael_setup_x86ish_aesni; #endif +#if CPUFAM_ARMEL && HAVE_AS_ARMV8_CRYPTO +extern setup__functype rijndael_setup_arm_crypto; +#endif static setup__functype *pick_setup(void) { #if CPUFAM_X86 || CPUFAM_AMD64 DISPATCH_PICK_COND(rijndael_setup, rijndael_setup_x86ish_aesni, cpu_feature_p(CPUFEAT_X86_AESNI)); +#endif +#if CPUFAM_ARMEL && HAVE_AS_ARMV8_CRYPTO + DISPATCH_PICK_COND(rijndael_setup, rijndael_setup_arm_crypto, + cpu_feature_p(CPUFEAT_ARM_AES)); #endif DISPATCH_PICK_FALLBACK(rijndael_setup, simple_setup); }