Lines Matching refs:alg
66 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
143 const char *alg; member
1899 "unkeyed ones must come first\n", desc->alg); in alg_test_hash()
3732 const char *alg) in do_test_kpp() argument
3773 alg, err); in do_test_kpp()
3789 alg); in do_test_kpp()
3811 alg, err); in do_test_kpp()
3842 alg, err); in do_test_kpp()
3858 alg); in do_test_kpp()
3873 static int test_kpp(struct crypto_kpp *tfm, const char *alg, in test_kpp() argument
3879 ret = do_test_kpp(tfm, vecs++, alg); in test_kpp()
3882 alg, i + 1, ret); in test_kpp()
3902 err = test_kpp(tfm, desc->alg, desc->suite.kpp.vecs, in alg_test_kpp()
4097 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() argument
4130 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher()
4149 .alg = "adiantum(xchacha12,aes)",
4156 .alg = "adiantum(xchacha20,aes)",
4163 .alg = "aegis128",
4169 .alg = "ansi_cprng",
4175 .alg = "authenc(hmac(md5),ecb(cipher_null))",
4181 .alg = "authenc(hmac(sha1),cbc(aes))",
4188 .alg = "authenc(hmac(sha1),cbc(des))",
4194 .alg = "authenc(hmac(sha1),cbc(des3_ede))",
4201 .alg = "authenc(hmac(sha1),ctr(aes))",
4205 .alg = "authenc(hmac(sha1),ecb(cipher_null))",
4211 .alg = "authenc(hmac(sha1),rfc3686(ctr(aes)))",
4215 .alg = "authenc(hmac(sha224),cbc(des))",
4221 .alg = "authenc(hmac(sha224),cbc(des3_ede))",
4228 .alg = "authenc(hmac(sha256),cbc(aes))",
4235 .alg = "authenc(hmac(sha256),cbc(des))",
4241 .alg = "authenc(hmac(sha256),cbc(des3_ede))",
4248 .alg = "authenc(hmac(sha256),ctr(aes))",
4252 .alg = "authenc(hmac(sha256),rfc3686(ctr(aes)))",
4256 .alg = "authenc(hmac(sha384),cbc(des))",
4262 .alg = "authenc(hmac(sha384),cbc(des3_ede))",
4269 .alg = "authenc(hmac(sha384),ctr(aes))",
4273 .alg = "authenc(hmac(sha384),rfc3686(ctr(aes)))",
4277 .alg = "authenc(hmac(sha512),cbc(aes))",
4284 .alg = "authenc(hmac(sha512),cbc(des))",
4290 .alg = "authenc(hmac(sha512),cbc(des3_ede))",
4297 .alg = "authenc(hmac(sha512),ctr(aes))",
4301 .alg = "authenc(hmac(sha512),rfc3686(ctr(aes)))",
4305 .alg = "blake2b-160",
4312 .alg = "blake2b-256",
4319 .alg = "blake2b-384",
4326 .alg = "blake2b-512",
4333 .alg = "blake2s-128",
4339 .alg = "blake2s-160",
4345 .alg = "blake2s-224",
4351 .alg = "blake2s-256",
4357 .alg = "cbc(aes)",
4364 .alg = "cbc(anubis)",
4370 .alg = "cbc(blowfish)",
4376 .alg = "cbc(camellia)",
4382 .alg = "cbc(cast5)",
4388 .alg = "cbc(cast6)",
4394 .alg = "cbc(des)",
4400 .alg = "cbc(des3_ede)",
4410 .alg = "cbc(paes)",
4417 .alg = "cbc(psm4)",
4420 .alg = "cbc(serpent)",
4426 .alg = "cbc(sm4)",
4432 .alg = "cbc(twofish)",
4439 .alg = "cbc-paes-s390",
4447 .alg = "cbcmac(aes)",
4454 .alg = "cbcmac(sm4)",
4460 .alg = "ccm(aes)",
4471 .alg = "ccm(sm4)",
4481 .alg = "cfb(aes)",
4488 .alg = "cfb(sm4)",
4494 .alg = "chacha20",
4500 .alg = "cmac(aes)",
4507 .alg = "cmac(des3_ede)",
4514 .alg = "cmac(sm4)",
4520 .alg = "compress_null",
4523 .alg = "crc32",
4530 .alg = "crc32c",
4537 .alg = "crct10dif",
4544 .alg = "ctr(aes)",
4551 .alg = "ctr(blowfish)",
4557 .alg = "ctr(camellia)",
4563 .alg = "ctr(cast5)",
4569 .alg = "ctr(cast6)",
4575 .alg = "ctr(des)",
4581 .alg = "ctr(des3_ede)",
4591 .alg = "ctr(paes)",
4599 .alg = "ctr(psm4)",
4602 .alg = "ctr(serpent)",
4608 .alg = "ctr(sm4)",
4614 .alg = "ctr(twofish)",
4621 .alg = "ctr-paes-s390",
4629 .alg = "cts(cbc(aes))",
4639 .alg = "cts(cbc(paes))",
4643 .alg = "curve25519",
4649 .alg = "deflate",
4659 .alg = "dh",
4666 .alg = "digest_null",
4669 .alg = "drbg_nopr_ctr_aes128",
4676 .alg = "drbg_nopr_ctr_aes192",
4683 .alg = "drbg_nopr_ctr_aes256",
4694 .alg = "drbg_nopr_hmac_sha1",
4698 .alg = "drbg_nopr_hmac_sha256",
4706 .alg = "drbg_nopr_hmac_sha384",
4710 .alg = "drbg_nopr_hmac_sha512",
4717 .alg = "drbg_nopr_sha1",
4721 .alg = "drbg_nopr_sha256",
4729 .alg = "drbg_nopr_sha384",
4733 .alg = "drbg_nopr_sha512",
4737 .alg = "drbg_pr_ctr_aes128",
4745 .alg = "drbg_pr_ctr_aes192",
4749 .alg = "drbg_pr_ctr_aes256",
4753 .alg = "drbg_pr_hmac_sha1",
4757 .alg = "drbg_pr_hmac_sha256",
4765 .alg = "drbg_pr_hmac_sha384",
4769 .alg = "drbg_pr_hmac_sha512",
4773 .alg = "drbg_pr_sha1",
4777 .alg = "drbg_pr_sha256",
4785 .alg = "drbg_pr_sha384",
4789 .alg = "drbg_pr_sha512",
4793 .alg = "ecb(aes)",
4800 .alg = "ecb(anubis)",
4806 .alg = "ecb(arc4)",
4813 .alg = "ecb(blowfish)",
4819 .alg = "ecb(camellia)",
4825 .alg = "ecb(cast5)",
4831 .alg = "ecb(cast6)",
4837 .alg = "ecb(cipher_null)",
4841 .alg = "ecb(des)",
4847 .alg = "ecb(des3_ede)",
4854 .alg = "ecb(fcrypt)",
4863 .alg = "ecb(khazad)",
4872 .alg = "ecb(paes)",
4876 .alg = "ecb(seed)",
4882 .alg = "ecb(serpent)",
4888 .alg = "ecb(sm4)",
4894 .alg = "ecb(tea)",
4900 .alg = "ecb(twofish)",
4906 .alg = "ecb(xeta)",
4912 .alg = "ecb(xtea)",
4919 .alg = "ecb-paes-s390",
4927 .alg = "ecdh-nist-p192",
4933 .alg = "ecdh-nist-p256",
4940 .alg = "ecdh-nist-p384",
4947 .alg = "ecdsa-nist-p192",
4953 .alg = "ecdsa-nist-p256",
4959 .alg = "ecdsa-nist-p384",
4965 .alg = "ecrdsa",
4971 .alg = "essiv(authenc(hmac(sha256),cbc(aes)),sha256)",
4978 .alg = "essiv(cbc(aes),sha256)",
4985 .alg = "gcm(aes)",
4993 .alg = "gcm(sm4)",
5000 .alg = "ghash",
5007 .alg = "hmac(md5)",
5013 .alg = "hmac(rmd160)",
5019 .alg = "hmac(sha1)",
5026 .alg = "hmac(sha224)",
5033 .alg = "hmac(sha256)",
5040 .alg = "hmac(sha3-224)",
5047 .alg = "hmac(sha3-256)",
5054 .alg = "hmac(sha3-384)",
5061 .alg = "hmac(sha3-512)",
5068 .alg = "hmac(sha384)",
5075 .alg = "hmac(sha512)",
5082 .alg = "hmac(sm3)",
5088 .alg = "hmac(streebog256)",
5094 .alg = "hmac(streebog512)",
5100 .alg = "jitterentropy_rng",
5104 .alg = "kw(aes)",
5111 .alg = "lrw(aes)",
5118 .alg = "lrw(camellia)",
5125 .alg = "lrw(cast6)",
5132 .alg = "lrw(serpent)",
5139 .alg = "lrw(twofish)",
5146 .alg = "lz4",
5156 .alg = "lz4hc",
5166 .alg = "lzo",
5176 .alg = "lzo-rle",
5186 .alg = "md4",
5192 .alg = "md5",
5198 .alg = "michael_mic",
5204 .alg = "nhpoly1305",
5210 .alg = "ofb(aes)",
5220 .alg = "ofb(paes)",
5224 .alg = "ofb(sm4)",
5230 .alg = "pcbc(fcrypt)",
5236 .alg = "pkcs1pad(rsa,sha224)",
5240 .alg = "pkcs1pad(rsa,sha256)",
5247 .alg = "pkcs1pad(rsa,sha384)",
5251 .alg = "pkcs1pad(rsa,sha512)",
5255 .alg = "poly1305",
5261 .alg = "rfc3686(ctr(aes))",
5268 .alg = "rfc3686(ctr(sm4))",
5274 .alg = "rfc4106(gcm(aes))",
5286 .alg = "rfc4309(ccm(aes))",
5298 .alg = "rfc4543(gcm(aes))",
5309 .alg = "rfc7539(chacha20,poly1305)",
5315 .alg = "rfc7539esp(chacha20,poly1305)",
5325 .alg = "rmd160",
5331 .alg = "rsa",
5338 .alg = "sha1",
5345 .alg = "sha224",
5352 .alg = "sha256",
5359 .alg = "sha3-224",
5366 .alg = "sha3-256",
5373 .alg = "sha3-384",
5380 .alg = "sha3-512",
5387 .alg = "sha384",
5394 .alg = "sha512",
5401 .alg = "sm2",
5407 .alg = "sm3",
5413 .alg = "streebog256",
5419 .alg = "streebog512",
5425 .alg = "vmac64(aes)",
5431 .alg = "wp256",
5437 .alg = "wp384",
5443 .alg = "wp512",
5449 .alg = "xcbc(aes)",
5455 .alg = "xchacha12",
5461 .alg = "xchacha20",
5467 .alg = "xts(aes)",
5475 .alg = "xts(camellia)",
5482 .alg = "xts(cast6)",
5492 .alg = "xts(paes)",
5496 .alg = "xts(serpent)",
5503 .alg = "xts(twofish)",
5511 .alg = "xts-paes-s390",
5519 .alg = "xts4096(paes)",
5523 .alg = "xts512(paes)",
5527 .alg = "xxhash64",
5534 .alg = "zlib-deflate",
5544 .alg = "zstd",
5561 int diff = strcmp(alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5562 alg_test_descs[i].alg); in alg_check_test_descs_order()
5566 alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5567 alg_test_descs[i].alg); in alg_check_test_descs_order()
5572 alg_test_descs[i].alg); in alg_check_test_descs_order()
5600 static int alg_find_test(const char *alg) in alg_find_test() argument
5607 int diff = strcmp(alg_test_descs[i].alg, alg); in alg_find_test()
5625 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
5641 if (snprintf(nalg, sizeof(nalg), "ecb(%s)", alg) >= in alg_test()
5656 i = alg_find_test(alg); in alg_test()
5678 driver, alg, in alg_test()
5682 driver, alg, rc); in alg_test()
5686 driver, alg); in alg_test()
5692 printk(KERN_INFO "alg: No test for %s (%s)\n", alg, driver); in alg_test()