From f6ceb966a6d45934fb5ebf157f4e4f30652ea8ca Mon Sep 17 00:00:00 2001 From: kaloz Date: Fri, 21 Jan 2011 17:52:22 +0000 Subject: [target/generic]: preliminary 2.6.38 support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25057 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-2.6.38/260-crypto_optional_tests.patch | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 target/linux/generic/patches-2.6.38/260-crypto_optional_tests.patch (limited to 'target/linux/generic/patches-2.6.38/260-crypto_optional_tests.patch') diff --git a/target/linux/generic/patches-2.6.38/260-crypto_optional_tests.patch b/target/linux/generic/patches-2.6.38/260-crypto_optional_tests.patch new file mode 100644 index 000000000..e1a1588fe --- /dev/null +++ b/target/linux/generic/patches-2.6.38/260-crypto_optional_tests.patch @@ -0,0 +1,64 @@ +--- a/crypto/Kconfig ++++ b/crypto/Kconfig +@@ -108,6 +108,10 @@ config CRYPTO_MANAGER_DISABLE_TESTS + Disable run-time self tests that normally take place at + algorithm registration. + ++config CRYPTO_MANAGER_NO_TESTS ++ bool "Disable internal testsuite to save space" ++ depends on CRYPTO_MANAGER ++ + config CRYPTO_GF128MUL + tristate "GF(2^128) multiplication functions (EXPERIMENTAL)" + help +--- a/crypto/testmgr.c ++++ b/crypto/testmgr.c +@@ -65,6 +65,8 @@ int alg_test(const char *driver, const c + #define ENCRYPT 1 + #define DECRYPT 0 + ++#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS ++ + struct tcrypt_result { + struct completion completion; + int err; +@@ -2508,8 +2510,11 @@ static int alg_find_test(const char *alg + return -1; + } + ++#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ ++ + int alg_test(const char *driver, const char *alg, u32 type, u32 mask) + { ++#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS + int i; + int j; + int rc; +@@ -2564,6 +2569,9 @@ notest: + return 0; + non_fips_alg: + return -EINVAL; ++#else /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ ++ return 0; ++#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ + } + + #endif /* CONFIG_CRYPTO_MANAGER_DISABLE_TESTS */ +--- a/crypto/testmgr.h ++++ b/crypto/testmgr.h +@@ -29,6 +29,8 @@ + + #include + ++#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS ++ + #define MAX_DIGEST_SIZE 64 + #define MAX_TAP 8 + +@@ -9969,4 +9971,6 @@ static struct hash_testvec crc32c_tv_tem + }, + }; + ++#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ ++ + #endif /* _CRYPTO_TESTMGR_H */ -- cgit v1.2.3