Lines Matching refs:alg
62 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
125 const char *alg; member
1816 "unkeyed ones must come first\n", desc->alg); in alg_test_hash()
3462 const char *alg) in do_test_kpp() argument
3503 alg, err); in do_test_kpp()
3519 alg); in do_test_kpp()
3541 alg, err); in do_test_kpp()
3572 alg, err); in do_test_kpp()
3588 alg); in do_test_kpp()
3603 static int test_kpp(struct crypto_kpp *tfm, const char *alg, in test_kpp() argument
3609 ret = do_test_kpp(tfm, vecs++, alg); in test_kpp()
3612 alg, i + 1, ret); in test_kpp()
3632 err = test_kpp(tfm, desc->alg, desc->suite.kpp.vecs, in alg_test_kpp()
3819 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() argument
3852 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher()
3870 .alg = "adiantum(xchacha12,aes)",
3877 .alg = "adiantum(xchacha20,aes)",
3884 .alg = "aegis128",
3890 .alg = "ansi_cprng",
3896 .alg = "authenc(hmac(md5),ecb(cipher_null))",
3902 .alg = "authenc(hmac(sha1),cbc(aes))",
3909 .alg = "authenc(hmac(sha1),cbc(des))",
3915 .alg = "authenc(hmac(sha1),cbc(des3_ede))",
3922 .alg = "authenc(hmac(sha1),ctr(aes))",
3926 .alg = "authenc(hmac(sha1),ecb(cipher_null))",
3932 .alg = "authenc(hmac(sha1),rfc3686(ctr(aes)))",
3936 .alg = "authenc(hmac(sha224),cbc(des))",
3942 .alg = "authenc(hmac(sha224),cbc(des3_ede))",
3949 .alg = "authenc(hmac(sha256),cbc(aes))",
3956 .alg = "authenc(hmac(sha256),cbc(des))",
3962 .alg = "authenc(hmac(sha256),cbc(des3_ede))",
3969 .alg = "authenc(hmac(sha256),ctr(aes))",
3973 .alg = "authenc(hmac(sha256),rfc3686(ctr(aes)))",
3977 .alg = "authenc(hmac(sha384),cbc(des))",
3983 .alg = "authenc(hmac(sha384),cbc(des3_ede))",
3990 .alg = "authenc(hmac(sha384),ctr(aes))",
3994 .alg = "authenc(hmac(sha384),rfc3686(ctr(aes)))",
3998 .alg = "authenc(hmac(sha512),cbc(aes))",
4005 .alg = "authenc(hmac(sha512),cbc(des))",
4011 .alg = "authenc(hmac(sha512),cbc(des3_ede))",
4018 .alg = "authenc(hmac(sha512),ctr(aes))",
4022 .alg = "authenc(hmac(sha512),rfc3686(ctr(aes)))",
4026 .alg = "cbc(aes)",
4033 .alg = "cbc(anubis)",
4039 .alg = "cbc(blowfish)",
4045 .alg = "cbc(camellia)",
4051 .alg = "cbc(cast5)",
4057 .alg = "cbc(cast6)",
4063 .alg = "cbc(des)",
4069 .alg = "cbc(des3_ede)",
4079 .alg = "cbc(paes)",
4086 .alg = "cbc(psm4)",
4089 .alg = "cbc(serpent)",
4095 .alg = "cbc(sm4)",
4101 .alg = "cbc(twofish)",
4107 .alg = "cbcmac(aes)",
4114 .alg = "ccm(aes)",
4122 .alg = "cfb(aes)",
4129 .alg = "chacha20",
4135 .alg = "cmac(aes)",
4142 .alg = "cmac(des3_ede)",
4149 .alg = "compress_null",
4152 .alg = "crc32",
4159 .alg = "crc32c",
4166 .alg = "crct10dif",
4173 .alg = "ctr(aes)",
4180 .alg = "ctr(blowfish)",
4186 .alg = "ctr(camellia)",
4192 .alg = "ctr(cast5)",
4198 .alg = "ctr(cast6)",
4204 .alg = "ctr(des)",
4210 .alg = "ctr(des3_ede)",
4220 .alg = "ctr(paes)",
4228 .alg = "ctr(psm4)",
4231 .alg = "ctr(serpent)",
4237 .alg = "ctr(sm4)",
4243 .alg = "ctr(twofish)",
4249 .alg = "cts(cbc(aes))",
4259 .alg = "cts(cbc(paes))",
4263 .alg = "deflate",
4273 .alg = "dh",
4280 .alg = "digest_null",
4283 .alg = "drbg_nopr_ctr_aes128",
4290 .alg = "drbg_nopr_ctr_aes192",
4297 .alg = "drbg_nopr_ctr_aes256",
4308 .alg = "drbg_nopr_hmac_sha1",
4312 .alg = "drbg_nopr_hmac_sha256",
4320 .alg = "drbg_nopr_hmac_sha384",
4324 .alg = "drbg_nopr_hmac_sha512",
4328 .alg = "drbg_nopr_sha1",
4332 .alg = "drbg_nopr_sha256",
4340 .alg = "drbg_nopr_sha384",
4344 .alg = "drbg_nopr_sha512",
4348 .alg = "drbg_pr_ctr_aes128",
4356 .alg = "drbg_pr_ctr_aes192",
4360 .alg = "drbg_pr_ctr_aes256",
4364 .alg = "drbg_pr_hmac_sha1",
4368 .alg = "drbg_pr_hmac_sha256",
4376 .alg = "drbg_pr_hmac_sha384",
4380 .alg = "drbg_pr_hmac_sha512",
4384 .alg = "drbg_pr_sha1",
4388 .alg = "drbg_pr_sha256",
4396 .alg = "drbg_pr_sha384",
4400 .alg = "drbg_pr_sha512",
4404 .alg = "ecb(aes)",
4411 .alg = "ecb(anubis)",
4417 .alg = "ecb(arc4)",
4424 .alg = "ecb(blowfish)",
4430 .alg = "ecb(camellia)",
4436 .alg = "ecb(cast5)",
4442 .alg = "ecb(cast6)",
4448 .alg = "ecb(cipher_null)",
4452 .alg = "ecb(des)",
4458 .alg = "ecb(des3_ede)",
4465 .alg = "ecb(fcrypt)",
4474 .alg = "ecb(khazad)",
4483 .alg = "ecb(paes)",
4487 .alg = "ecb(seed)",
4493 .alg = "ecb(serpent)",
4499 .alg = "ecb(sm4)",
4505 .alg = "ecb(tea)",
4511 .alg = "ecb(tnepres)",
4517 .alg = "ecb(twofish)",
4523 .alg = "ecb(xeta)",
4529 .alg = "ecb(xtea)",
4535 .alg = "ecdh",
4542 .alg = "ecrdsa",
4548 .alg = "essiv(authenc(hmac(sha256),cbc(aes)),sha256)",
4555 .alg = "essiv(cbc(aes),sha256)",
4562 .alg = "gcm(aes)",
4570 .alg = "ghash",
4577 .alg = "hmac(md5)",
4583 .alg = "hmac(rmd128)",
4589 .alg = "hmac(rmd160)",
4595 .alg = "hmac(sha1)",
4602 .alg = "hmac(sha224)",
4609 .alg = "hmac(sha256)",
4616 .alg = "hmac(sha3-224)",
4623 .alg = "hmac(sha3-256)",
4630 .alg = "hmac(sha3-384)",
4637 .alg = "hmac(sha3-512)",
4644 .alg = "hmac(sha384)",
4651 .alg = "hmac(sha512)",
4658 .alg = "hmac(streebog256)",
4664 .alg = "hmac(streebog512)",
4670 .alg = "jitterentropy_rng",
4674 .alg = "kw(aes)",
4681 .alg = "lrw(aes)",
4688 .alg = "lrw(camellia)",
4695 .alg = "lrw(cast6)",
4702 .alg = "lrw(serpent)",
4709 .alg = "lrw(twofish)",
4716 .alg = "lz4",
4726 .alg = "lz4hc",
4736 .alg = "lzo",
4746 .alg = "lzo-rle",
4756 .alg = "md4",
4762 .alg = "md5",
4768 .alg = "michael_mic",
4774 .alg = "nhpoly1305",
4780 .alg = "ofb(aes)",
4790 .alg = "ofb(paes)",
4794 .alg = "pcbc(fcrypt)",
4800 .alg = "pkcs1pad(rsa,sha224)",
4804 .alg = "pkcs1pad(rsa,sha256)",
4811 .alg = "pkcs1pad(rsa,sha384)",
4815 .alg = "pkcs1pad(rsa,sha512)",
4819 .alg = "poly1305",
4825 .alg = "rfc3686(ctr(aes))",
4832 .alg = "rfc4106(gcm(aes))",
4840 .alg = "rfc4309(ccm(aes))",
4848 .alg = "rfc4543(gcm(aes))",
4855 .alg = "rfc7539(chacha20,poly1305)",
4861 .alg = "rfc7539esp(chacha20,poly1305)",
4867 .alg = "rmd128",
4873 .alg = "rmd160",
4879 .alg = "rmd256",
4885 .alg = "rmd320",
4891 .alg = "rsa",
4898 .alg = "salsa20",
4904 .alg = "sha1",
4911 .alg = "sha224",
4918 .alg = "sha256",
4925 .alg = "sha3-224",
4932 .alg = "sha3-256",
4939 .alg = "sha3-384",
4946 .alg = "sha3-512",
4953 .alg = "sha384",
4960 .alg = "sha512",
4967 .alg = "sm3",
4973 .alg = "streebog256",
4979 .alg = "streebog512",
4985 .alg = "tgr128",
4991 .alg = "tgr160",
4997 .alg = "tgr192",
5003 .alg = "vmac64(aes)",
5009 .alg = "wp256",
5015 .alg = "wp384",
5021 .alg = "wp512",
5027 .alg = "xcbc(aes)",
5033 .alg = "xchacha12",
5039 .alg = "xchacha20",
5045 .alg = "xts(aes)",
5053 .alg = "xts(camellia)",
5060 .alg = "xts(cast6)",
5070 .alg = "xts(paes)",
5074 .alg = "xts(serpent)",
5081 .alg = "xts(twofish)",
5088 .alg = "xts4096(paes)",
5092 .alg = "xts512(paes)",
5096 .alg = "xxhash64",
5103 .alg = "zlib-deflate",
5113 .alg = "zstd",
5130 int diff = strcmp(alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5131 alg_test_descs[i].alg); in alg_check_test_descs_order()
5135 alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5136 alg_test_descs[i].alg); in alg_check_test_descs_order()
5141 alg_test_descs[i].alg); in alg_check_test_descs_order()
5169 static int alg_find_test(const char *alg) in alg_find_test() argument
5176 int diff = strcmp(alg_test_descs[i].alg, alg); in alg_find_test()
5194 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
5210 if (snprintf(nalg, sizeof(nalg), "ecb(%s)", alg) >= in alg_test()
5225 i = alg_find_test(alg); in alg_test()
5246 driver, alg, fips_enabled ? "fips" : "panic_on_fail"); in alg_test()
5250 pr_info("alg: self-tests for %s (%s) passed\n", driver, alg); in alg_test()
5255 printk(KERN_INFO "alg: No test for %s (%s)\n", alg, driver); in alg_test()