Skip to content
Snippets Groups Projects
Commit 7ca9c546 authored by Oskar Viljasaar's avatar Oskar Viljasaar
Browse files

Import openwrt hack patch 260-crypto_test_dependencies.patch

parent c74364a6
No related branches found
No related tags found
No related merge requests found
......@@ -144,13 +144,13 @@ config CRYPTO_MANAGER
cbc(aes).
config CRYPTO_MANAGER2
def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
select CRYPTO_AEAD2
select CRYPTO_HASH2
select CRYPTO_BLKCIPHER2
select CRYPTO_AKCIPHER2
select CRYPTO_KPP2
select CRYPTO_ACOMP2
def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y && !CRYPTO_MANAGER_DISABLE_TESTS)
select CRYPTO_AEAD2 if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_HASH2 if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_BLKCIPHER2 if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_AKCIPHER2 if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_KPP2 if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_ACOMP2 if !CRYPTO_MANAGER_DISABLE_TESTS
config CRYPTO_USER
tristate "Userspace cryptographic algorithm configuration"
......@@ -163,7 +163,6 @@ config CRYPTO_USER
config CRYPTO_MANAGER_DISABLE_TESTS
bool "Disable run-time self tests"
default y
depends on CRYPTO_MANAGER2
help
Disable run-time self tests that normally take place at
algorithm registration.
......
......@@ -245,8 +245,12 @@ static int cryptomgr_schedule_test(struct crypto_alg *alg)
type = alg->cra_flags;
/* Do not test internal algorithms. */
#ifdef CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
type |= CRYPTO_ALG_TESTED;
#else
if (type & CRYPTO_ALG_INTERNAL)
type |= CRYPTO_ALG_TESTED;
#endif
param->type = type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment