Revert "BACKPORT: crypto: arch - conditionalize crypto api in arch glue for lib code"

This reverts commit 47c8de47e1.

This will be reapplied later.

Change-Id: I2181874ef8de0e64007c2daf8a6f480cdeca97ac
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This commit is contained in:
Alexander Martinz 2025-06-03 17:29:23 +02:00
commit fa5e8001f7
No known key found for this signature in database
GPG key ID: CF15BDD9A321A9B2

View file

@ -69,7 +69,13 @@ static int __init blake2s_mod_init(void)
XFEATURE_MASK_AVX512, NULL))
static_branch_enable(&blake2s_use_avx512);
return 0;
return crypto_register_shashes(blake2s_algs, ARRAY_SIZE(blake2s_algs));
}
static void __exit blake2s_mod_exit(void)
{
if (boot_cpu_has(X86_FEATURE_SSSE3))
crypto_unregister_shashes(blake2s_algs, ARRAY_SIZE(blake2s_algs));
}
module_init(blake2s_mod_init);