Lines Matching refs:alg
63 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
140 const char *alg; member
2033 "unkeyed ones must come first\n", desc->alg); in alg_test_hash()
3931 const char *alg) in do_test_kpp() argument
3972 alg, err); in do_test_kpp()
3988 alg); in do_test_kpp()
4010 alg, err); in do_test_kpp()
4041 alg, err); in do_test_kpp()
4057 alg); in do_test_kpp()
4072 static int test_kpp(struct crypto_kpp *tfm, const char *alg, in test_kpp() argument
4078 ret = do_test_kpp(tfm, vecs++, alg); in test_kpp()
4081 alg, i + 1, ret); in test_kpp()
4103 err = test_kpp(tfm, desc->alg, desc->suite.kpp.vecs, in alg_test_kpp()
4298 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() argument
4333 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher()
4352 .alg = "adiantum(xchacha12,aes)",
4359 .alg = "adiantum(xchacha20,aes)",
4366 .alg = "aegis128",
4372 .alg = "ansi_cprng",
4378 .alg = "authenc(hmac(md5),ecb(cipher_null))",
4384 .alg = "authenc(hmac(sha1),cbc(aes))",
4391 .alg = "authenc(hmac(sha1),cbc(des))",
4397 .alg = "authenc(hmac(sha1),cbc(des3_ede))",
4403 .alg = "authenc(hmac(sha1),ctr(aes))",
4407 .alg = "authenc(hmac(sha1),ecb(cipher_null))",
4413 .alg = "authenc(hmac(sha1),rfc3686(ctr(aes)))",
4417 .alg = "authenc(hmac(sha224),cbc(des))",
4423 .alg = "authenc(hmac(sha224),cbc(des3_ede))",
4429 .alg = "authenc(hmac(sha256),cbc(aes))",
4436 .alg = "authenc(hmac(sha256),cbc(des))",
4442 .alg = "authenc(hmac(sha256),cbc(des3_ede))",
4448 .alg = "authenc(hmac(sha256),ctr(aes))",
4452 .alg = "authenc(hmac(sha256),rfc3686(ctr(aes)))",
4456 .alg = "authenc(hmac(sha384),cbc(des))",
4462 .alg = "authenc(hmac(sha384),cbc(des3_ede))",
4468 .alg = "authenc(hmac(sha384),ctr(aes))",
4472 .alg = "authenc(hmac(sha384),rfc3686(ctr(aes)))",
4476 .alg = "authenc(hmac(sha512),cbc(aes))",
4483 .alg = "authenc(hmac(sha512),cbc(des))",
4489 .alg = "authenc(hmac(sha512),cbc(des3_ede))",
4495 .alg = "authenc(hmac(sha512),ctr(aes))",
4499 .alg = "authenc(hmac(sha512),rfc3686(ctr(aes)))",
4503 .alg = "blake2b-160",
4510 .alg = "blake2b-256",
4517 .alg = "blake2b-384",
4524 .alg = "blake2b-512",
4531 .alg = "cbc(aes)",
4538 .alg = "cbc(anubis)",
4544 .alg = "cbc(aria)",
4550 .alg = "cbc(blowfish)",
4556 .alg = "cbc(camellia)",
4562 .alg = "cbc(cast5)",
4568 .alg = "cbc(cast6)",
4574 .alg = "cbc(des)",
4580 .alg = "cbc(des3_ede)",
4589 .alg = "cbc(paes)",
4596 .alg = "cbc(psm4)",
4599 .alg = "cbc(serpent)",
4605 .alg = "cbc(sm4)",
4611 .alg = "cbc(twofish)",
4618 .alg = "cbc-paes-s390",
4626 .alg = "cbcmac(aes)",
4632 .alg = "cbcmac(sm4)",
4638 .alg = "ccm(aes)",
4649 .alg = "ccm(sm4)",
4659 .alg = "chacha20",
4665 .alg = "cmac(aes)",
4672 .alg = "cmac(camellia)",
4678 .alg = "cmac(des3_ede)",
4684 .alg = "cmac(sm4)",
4690 .alg = "compress_null",
4693 .alg = "crc32",
4700 .alg = "crc32c",
4707 .alg = "crc64-rocksoft",
4714 .alg = "crct10dif",
4721 .alg = "ctr(aes)",
4728 .alg = "ctr(aria)",
4734 .alg = "ctr(blowfish)",
4740 .alg = "ctr(camellia)",
4746 .alg = "ctr(cast5)",
4752 .alg = "ctr(cast6)",
4758 .alg = "ctr(des)",
4764 .alg = "ctr(des3_ede)",
4773 .alg = "ctr(paes)",
4781 .alg = "ctr(psm4)",
4784 .alg = "ctr(serpent)",
4790 .alg = "ctr(sm4)",
4796 .alg = "ctr(twofish)",
4803 .alg = "ctr-paes-s390",
4811 .alg = "cts(cbc(aes))",
4821 .alg = "cts(cbc(paes))",
4825 .alg = "cts(cbc(sm4))",
4831 .alg = "curve25519",
4837 .alg = "deflate",
4847 .alg = "deflate-iaa",
4857 .alg = "dh",
4863 .alg = "digest_null",
4866 .alg = "drbg_nopr_ctr_aes128",
4873 .alg = "drbg_nopr_ctr_aes192",
4880 .alg = "drbg_nopr_ctr_aes256",
4887 .alg = "drbg_nopr_hmac_sha256",
4898 .alg = "drbg_nopr_hmac_sha384",
4901 .alg = "drbg_nopr_hmac_sha512",
4908 .alg = "drbg_nopr_sha256",
4916 .alg = "drbg_nopr_sha384",
4919 .alg = "drbg_nopr_sha512",
4923 .alg = "drbg_pr_ctr_aes128",
4931 .alg = "drbg_pr_ctr_aes192",
4935 .alg = "drbg_pr_ctr_aes256",
4939 .alg = "drbg_pr_hmac_sha256",
4947 .alg = "drbg_pr_hmac_sha384",
4950 .alg = "drbg_pr_hmac_sha512",
4954 .alg = "drbg_pr_sha256",
4962 .alg = "drbg_pr_sha384",
4965 .alg = "drbg_pr_sha512",
4969 .alg = "ecb(aes)",
4976 .alg = "ecb(anubis)",
4982 .alg = "ecb(arc4)",
4989 .alg = "ecb(aria)",
4995 .alg = "ecb(blowfish)",
5001 .alg = "ecb(camellia)",
5007 .alg = "ecb(cast5)",
5013 .alg = "ecb(cast6)",
5019 .alg = "ecb(cipher_null)",
5023 .alg = "ecb(des)",
5029 .alg = "ecb(des3_ede)",
5035 .alg = "ecb(fcrypt)",
5044 .alg = "ecb(khazad)",
5053 .alg = "ecb(paes)",
5057 .alg = "ecb(seed)",
5063 .alg = "ecb(serpent)",
5069 .alg = "ecb(sm4)",
5075 .alg = "ecb(tea)",
5081 .alg = "ecb(twofish)",
5087 .alg = "ecb(xeta)",
5093 .alg = "ecb(xtea)",
5100 .alg = "ecb-paes-s390",
5108 .alg = "ecdh-nist-p192",
5114 .alg = "ecdh-nist-p256",
5121 .alg = "ecdh-nist-p384",
5128 .alg = "ecdsa-nist-p192",
5134 .alg = "ecdsa-nist-p256",
5141 .alg = "ecdsa-nist-p384",
5148 .alg = "ecdsa-nist-p521",
5155 .alg = "ecrdsa",
5161 .alg = "essiv(authenc(hmac(sha256),cbc(aes)),sha256)",
5168 .alg = "essiv(cbc(aes),sha256)",
5176 .alg = "ffdhe2048(dh)",
5183 .alg = "ffdhe3072(dh)",
5190 .alg = "ffdhe4096(dh)",
5197 .alg = "ffdhe6144(dh)",
5204 .alg = "ffdhe8192(dh)",
5212 .alg = "gcm(aes)",
5220 .alg = "gcm(aria)",
5227 .alg = "gcm(sm4)",
5234 .alg = "ghash",
5240 .alg = "hctr2(aes)",
5248 .alg = "hmac(md5)",
5254 .alg = "hmac(rmd160)",
5260 .alg = "hmac(sha1)",
5267 .alg = "hmac(sha224)",
5274 .alg = "hmac(sha256)",
5281 .alg = "hmac(sha3-224)",
5288 .alg = "hmac(sha3-256)",
5295 .alg = "hmac(sha3-384)",
5302 .alg = "hmac(sha3-512)",
5309 .alg = "hmac(sha384)",
5316 .alg = "hmac(sha512)",
5323 .alg = "hmac(sm3)",
5329 .alg = "hmac(streebog256)",
5335 .alg = "hmac(streebog512)",
5341 .alg = "jitterentropy_rng",
5345 .alg = "kw(aes)",
5352 .alg = "lrw(aes)",
5359 .alg = "lrw(camellia)",
5366 .alg = "lrw(cast6)",
5373 .alg = "lrw(serpent)",
5380 .alg = "lrw(twofish)",
5387 .alg = "lz4",
5397 .alg = "lz4hc",
5407 .alg = "lzo",
5417 .alg = "lzo-rle",
5427 .alg = "md4",
5433 .alg = "md5",
5439 .alg = "michael_mic",
5445 .alg = "nhpoly1305",
5451 .alg = "pcbc(fcrypt)",
5457 .alg = "pkcs1pad(rsa,sha224)",
5461 .alg = "pkcs1pad(rsa,sha256)",
5468 .alg = "pkcs1pad(rsa,sha3-256)",
5472 .alg = "pkcs1pad(rsa,sha3-384)",
5476 .alg = "pkcs1pad(rsa,sha3-512)",
5480 .alg = "pkcs1pad(rsa,sha384)",
5484 .alg = "pkcs1pad(rsa,sha512)",
5488 .alg = "poly1305",
5494 .alg = "polyval",
5500 .alg = "rfc3686(ctr(aes))",
5507 .alg = "rfc3686(ctr(sm4))",
5513 .alg = "rfc4106(gcm(aes))",
5525 .alg = "rfc4309(ccm(aes))",
5537 .alg = "rfc4543(gcm(aes))",
5548 .alg = "rfc7539(chacha20,poly1305)",
5554 .alg = "rfc7539esp(chacha20,poly1305)",
5564 .alg = "rmd160",
5570 .alg = "rsa",
5577 .alg = "sha1",
5584 .alg = "sha224",
5591 .alg = "sha256",
5598 .alg = "sha3-224",
5605 .alg = "sha3-256",
5612 .alg = "sha3-384",
5619 .alg = "sha3-512",
5626 .alg = "sha384",
5633 .alg = "sha512",
5640 .alg = "sm3",
5646 .alg = "streebog256",
5652 .alg = "streebog512",
5658 .alg = "vmac64(aes)",
5664 .alg = "wp256",
5670 .alg = "wp384",
5676 .alg = "wp512",
5682 .alg = "xcbc(aes)",
5688 .alg = "xcbc(sm4)",
5694 .alg = "xchacha12",
5700 .alg = "xchacha20",
5706 .alg = "xctr(aes)",
5712 .alg = "xts(aes)",
5720 .alg = "xts(camellia)",
5727 .alg = "xts(cast6)",
5737 .alg = "xts(paes)",
5741 .alg = "xts(serpent)",
5748 .alg = "xts(sm4)",
5755 .alg = "xts(twofish)",
5763 .alg = "xts-paes-s390",
5771 .alg = "xxhash64",
5778 .alg = "zstd",
5795 int diff = strcmp(alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5796 alg_test_descs[i].alg); in alg_check_test_descs_order()
5800 alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5801 alg_test_descs[i].alg); in alg_check_test_descs_order()
5806 alg_test_descs[i].alg); in alg_check_test_descs_order()
5834 static int alg_find_test(const char *alg) in alg_find_test() argument
5841 int diff = strcmp(alg_test_descs[i].alg, alg); in alg_find_test()
5859 static int alg_fips_disabled(const char *driver, const char *alg) in alg_fips_disabled() argument
5861 pr_info("alg: %s (%s) is disabled due to FIPS\n", alg, driver); in alg_fips_disabled()
5866 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
5882 if (snprintf(nalg, sizeof(nalg), "ecb(%s)", alg) >= in alg_test()
5897 i = alg_find_test(alg); in alg_test()
5923 driver, alg, in alg_test()
5927 alg, driver, rc); in alg_test()
5930 alg, driver, rc); in alg_test()
5934 driver, alg); in alg_test()
5943 if (snprintf(nalg, sizeof(nalg), "ecb(%s)", alg) >= in alg_test()
5959 printk(KERN_INFO "alg: No test for %s (%s)\n", alg, driver); in alg_test()
5962 return alg_fips_disabled(driver, alg); in alg_test()
5966 return alg_fips_disabled(driver, alg); in alg_test()