+ if (0)
+ ;
+#if __x86_64__
+ else if (crypto_native_aes_ctr_init_icl && clib_cpu_supports_vaes () &&
+ clib_cpu_supports_avx512f ())
+ error = crypto_native_aes_ctr_init_icl (vm);
+ else if (crypto_native_aes_ctr_init_adl && clib_cpu_supports_vaes ())
+ error = crypto_native_aes_ctr_init_adl (vm);
+ else if (crypto_native_aes_ctr_init_skx && clib_cpu_supports_avx512f ())
+ error = crypto_native_aes_ctr_init_skx (vm);
+ else if (crypto_native_aes_ctr_init_hsw && clib_cpu_supports_avx2 ())
+ error = crypto_native_aes_ctr_init_hsw (vm);
+ else if (crypto_native_aes_ctr_init_slm)
+ error = crypto_native_aes_ctr_init_slm (vm);
+#endif
+#if __aarch64__
+ else if (crypto_native_aes_ctr_init_neon)
+ error = crypto_native_aes_ctr_init_neon (vm);
+#endif
+ else
+ error = clib_error_return (0, "No AES CTR implemenation available");
+
+ if (error)
+ return error;
+