source: trunk/target/linux/generic/patches-2.6.32/260-crypto_optional_tests.patch @ 22766

Last change on this file since 22766 was 22766, checked in by florian, 6 years ago

[kernel] update to 2.6.32.20

File size: 1.4 KB
  • crypto/Kconfig

    a b config CRYPTO_MANAGER2 
    9696        select CRYPTO_BLKCIPHER2 
    9797        select CRYPTO_PCOMP 
    9898 
     99config CRYPTO_MANAGER_NO_TESTS 
     100        bool "Disable internal testsuite to save space" 
     101        depends on CRYPTO_MANAGER 
     102 
    99103config CRYPTO_GF128MUL 
    100104        tristate "GF(2^128) multiplication functions (EXPERIMENTAL)" 
    101105        depends on EXPERIMENTAL 
  • crypto/testmgr.c

    a b  
    4747#define ENCRYPT 1 
    4848#define DECRYPT 0 
    4949 
     50#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS 
     51 
    5052struct tcrypt_result { 
    5153        struct completion completion; 
    5254        int err; 
    static int alg_find_test(const char *alg 
    24342436        return -1; 
    24352437} 
    24362438 
     2439#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ 
     2440 
    24372441int alg_test(const char *driver, const char *alg, u32 type, u32 mask) 
    24382442{ 
     2443#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS 
    24392444        int i; 
    24402445        int j; 
    24412446        int rc; 
    notest: 
    24902495        return 0; 
    24912496non_fips_alg: 
    24922497        return -EINVAL; 
     2498#else /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ 
     2499        return 0; 
     2500#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ 
    24932501} 
    24942502EXPORT_SYMBOL_GPL(alg_test); 
  • crypto/testmgr.h

    a b  
    2020 
    2121#include <crypto/compress.h> 
    2222 
     23#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS 
     24 
    2325#define MAX_DIGEST_SIZE         64 
    2426#define MAX_TAP                 8 
    2527 
    static struct hash_testvec crc32c_tv_tem 
    95379539        }, 
    95389540}; 
    95399541 
     9542#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ 
     9543 
    95409544#endif  /* _CRYPTO_TESTMGR_H */ 
Note: See TracBrowser for help on using the repository browser.