Lines Matching refs:alg

41 int alg_test(const char *driver, const char *alg, u32 type, u32 mask)  in alg_test()  argument
127 const char *alg; member
1979 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() argument
1982 if (strncmp(alg, "rsa", 3) == 0) in test_akcipher()
2001 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher()
2017 .alg = "__cbc-cast5-avx",
2020 .alg = "__cbc-cast6-avx",
2023 .alg = "__cbc-serpent-avx",
2026 .alg = "__cbc-serpent-avx2",
2029 .alg = "__cbc-serpent-sse2",
2032 .alg = "__cbc-twofish-avx",
2035 .alg = "__driver-cbc-aes-aesni",
2039 .alg = "__driver-cbc-camellia-aesni",
2042 .alg = "__driver-cbc-camellia-aesni-avx2",
2045 .alg = "__driver-cbc-cast5-avx",
2048 .alg = "__driver-cbc-cast6-avx",
2051 .alg = "__driver-cbc-serpent-avx",
2054 .alg = "__driver-cbc-serpent-avx2",
2057 .alg = "__driver-cbc-serpent-sse2",
2060 .alg = "__driver-cbc-twofish-avx",
2063 .alg = "__driver-ecb-aes-aesni",
2067 .alg = "__driver-ecb-camellia-aesni",
2070 .alg = "__driver-ecb-camellia-aesni-avx2",
2073 .alg = "__driver-ecb-cast5-avx",
2076 .alg = "__driver-ecb-cast6-avx",
2079 .alg = "__driver-ecb-serpent-avx",
2082 .alg = "__driver-ecb-serpent-avx2",
2085 .alg = "__driver-ecb-serpent-sse2",
2088 .alg = "__driver-ecb-twofish-avx",
2091 .alg = "__driver-gcm-aes-aesni",
2095 .alg = "__ghash-pclmulqdqni",
2099 .alg = "ansi_cprng",
2109 .alg = "authenc(hmac(md5),ecb(cipher_null))",
2124 .alg = "authenc(hmac(sha1),cbc(aes))",
2137 .alg = "authenc(hmac(sha1),cbc(des))",
2150 .alg = "authenc(hmac(sha1),cbc(des3_ede))",
2163 .alg = "authenc(hmac(sha1),ecb(cipher_null))",
2182 .alg = "authenc(hmac(sha224),cbc(des))",
2195 .alg = "authenc(hmac(sha224),cbc(des3_ede))",
2208 .alg = "authenc(hmac(sha256),cbc(aes))",
2221 .alg = "authenc(hmac(sha256),cbc(des))",
2234 .alg = "authenc(hmac(sha256),cbc(des3_ede))",
2247 .alg = "authenc(hmac(sha384),cbc(des))",
2260 .alg = "authenc(hmac(sha384),cbc(des3_ede))",
2273 .alg = "authenc(hmac(sha512),cbc(aes))",
2286 .alg = "authenc(hmac(sha512),cbc(des))",
2299 .alg = "authenc(hmac(sha512),cbc(des3_ede))",
2312 .alg = "cbc(aes)",
2328 .alg = "cbc(anubis)",
2343 .alg = "cbc(blowfish)",
2358 .alg = "cbc(camellia)",
2373 .alg = "cbc(cast5)",
2388 .alg = "cbc(cast6)",
2403 .alg = "cbc(des)",
2418 .alg = "cbc(des3_ede)",
2434 .alg = "cbc(serpent)",
2449 .alg = "cbc(twofish)",
2464 .alg = "ccm(aes)",
2480 .alg = "chacha20",
2495 .alg = "cmac(aes)",
2505 .alg = "cmac(des3_ede)",
2515 .alg = "compress_null",
2518 .alg = "crc32",
2527 .alg = "crc32c",
2537 .alg = "crct10dif",
2547 .alg = "cryptd(__driver-cbc-aes-aesni)",
2551 .alg = "cryptd(__driver-cbc-camellia-aesni)",
2554 .alg = "cryptd(__driver-cbc-camellia-aesni-avx2)",
2557 .alg = "cryptd(__driver-cbc-serpent-avx2)",
2560 .alg = "cryptd(__driver-ecb-aes-aesni)",
2564 .alg = "cryptd(__driver-ecb-camellia-aesni)",
2567 .alg = "cryptd(__driver-ecb-camellia-aesni-avx2)",
2570 .alg = "cryptd(__driver-ecb-cast5-avx)",
2573 .alg = "cryptd(__driver-ecb-cast6-avx)",
2576 .alg = "cryptd(__driver-ecb-serpent-avx)",
2579 .alg = "cryptd(__driver-ecb-serpent-avx2)",
2582 .alg = "cryptd(__driver-ecb-serpent-sse2)",
2585 .alg = "cryptd(__driver-ecb-twofish-avx)",
2588 .alg = "cryptd(__driver-gcm-aes-aesni)",
2592 .alg = "cryptd(__ghash-pclmulqdqni)",
2596 .alg = "ctr(aes)",
2612 .alg = "ctr(blowfish)",
2627 .alg = "ctr(camellia)",
2642 .alg = "ctr(cast5)",
2657 .alg = "ctr(cast6)",
2672 .alg = "ctr(des)",
2687 .alg = "ctr(des3_ede)",
2702 .alg = "ctr(serpent)",
2717 .alg = "ctr(twofish)",
2732 .alg = "cts(cbc(aes))",
2747 .alg = "deflate",
2763 .alg = "digest_null",
2766 .alg = "drbg_nopr_ctr_aes128",
2776 .alg = "drbg_nopr_ctr_aes192",
2786 .alg = "drbg_nopr_ctr_aes256",
2800 .alg = "drbg_nopr_hmac_sha1",
2804 .alg = "drbg_nopr_hmac_sha256",
2816 .alg = "drbg_nopr_hmac_sha384",
2820 .alg = "drbg_nopr_hmac_sha512",
2824 .alg = "drbg_nopr_sha1",
2828 .alg = "drbg_nopr_sha256",
2839 .alg = "drbg_nopr_sha384",
2843 .alg = "drbg_nopr_sha512",
2847 .alg = "drbg_pr_ctr_aes128",
2858 .alg = "drbg_pr_ctr_aes192",
2862 .alg = "drbg_pr_ctr_aes256",
2866 .alg = "drbg_pr_hmac_sha1",
2870 .alg = "drbg_pr_hmac_sha256",
2881 .alg = "drbg_pr_hmac_sha384",
2885 .alg = "drbg_pr_hmac_sha512",
2889 .alg = "drbg_pr_sha1",
2893 .alg = "drbg_pr_sha256",
2904 .alg = "drbg_pr_sha384",
2908 .alg = "drbg_pr_sha512",
2912 .alg = "ecb(__aes-aesni)",
2916 .alg = "ecb(aes)",
2932 .alg = "ecb(anubis)",
2947 .alg = "ecb(arc4)",
2962 .alg = "ecb(blowfish)",
2977 .alg = "ecb(camellia)",
2992 .alg = "ecb(cast5)",
3007 .alg = "ecb(cast6)",
3022 .alg = "ecb(cipher_null)",
3025 .alg = "ecb(des)",
3040 .alg = "ecb(des3_ede)",
3056 .alg = "ecb(fcrypt)",
3071 .alg = "ecb(khazad)",
3086 .alg = "ecb(seed)",
3101 .alg = "ecb(serpent)",
3116 .alg = "ecb(tea)",
3131 .alg = "ecb(tnepres)",
3146 .alg = "ecb(twofish)",
3161 .alg = "ecb(xeta)",
3176 .alg = "ecb(xtea)",
3191 .alg = "gcm(aes)",
3207 .alg = "ghash",
3217 .alg = "hmac(crc32)",
3226 .alg = "hmac(md5)",
3235 .alg = "hmac(rmd128)",
3244 .alg = "hmac(rmd160)",
3253 .alg = "hmac(sha1)",
3263 .alg = "hmac(sha224)",
3273 .alg = "hmac(sha256)",
3283 .alg = "hmac(sha384)",
3293 .alg = "hmac(sha512)",
3303 .alg = "jitterentropy_rng",
3307 .alg = "kw(aes)",
3323 .alg = "lrw(aes)",
3338 .alg = "lrw(camellia)",
3353 .alg = "lrw(cast6)",
3368 .alg = "lrw(serpent)",
3383 .alg = "lrw(twofish)",
3398 .alg = "lz4",
3414 .alg = "lz4hc",
3430 .alg = "lzo",
3446 .alg = "md4",
3455 .alg = "md5",
3464 .alg = "michael_mic",
3473 .alg = "ofb(aes)",
3489 .alg = "pcbc(fcrypt)",
3504 .alg = "poly1305",
3513 .alg = "rfc3686(ctr(aes))",
3529 .alg = "rfc4106(gcm(aes))",
3545 .alg = "rfc4309(ccm(aes))",
3561 .alg = "rfc4543(gcm(aes))",
3576 .alg = "rfc7539(chacha20,poly1305)",
3591 .alg = "rfc7539esp(chacha20,poly1305)",
3606 .alg = "rmd128",
3615 .alg = "rmd160",
3624 .alg = "rmd256",
3633 .alg = "rmd320",
3642 .alg = "rsa",
3652 .alg = "salsa20",
3663 .alg = "sha1",
3673 .alg = "sha224",
3683 .alg = "sha256",
3693 .alg = "sha384",
3703 .alg = "sha512",
3713 .alg = "tgr128",
3722 .alg = "tgr160",
3731 .alg = "tgr192",
3740 .alg = "vmac(aes)",
3749 .alg = "wp256",
3758 .alg = "wp384",
3767 .alg = "wp512",
3776 .alg = "xcbc(aes)",
3785 .alg = "xts(aes)",
3801 .alg = "xts(camellia)",
3816 .alg = "xts(cast6)",
3831 .alg = "xts(serpent)",
3846 .alg = "xts(twofish)",
3861 .alg = "zlib",
3892 int diff = strcmp(alg_test_descs[i - 1].alg, in alg_test_descs_check_order()
3893 alg_test_descs[i].alg); in alg_test_descs_check_order()
3897 alg_test_descs[i - 1].alg, in alg_test_descs_check_order()
3898 alg_test_descs[i].alg); in alg_test_descs_check_order()
3903 alg_test_descs[i].alg); in alg_test_descs_check_order()
3908 static int alg_find_test(const char *alg) in alg_find_test() argument
3915 int diff = strcmp(alg_test_descs[i].alg, alg); in alg_find_test()
3933 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
3944 if (snprintf(nalg, sizeof(nalg), "ecb(%s)", alg) >= in alg_test()
3959 i = alg_find_test(alg); in alg_test()
3978 panic("%s: %s alg self test failed in fips mode!\n", driver, alg); in alg_test()
3981 pr_info("alg: self-tests for %s (%s) passed\n", driver, alg); in alg_test()
3986 printk(KERN_INFO "alg: No test for %s (%s)\n", alg, driver); in alg_test()