Lines Matching full:alg

64 int alg_test(const char *driver, const char *alg, u32 type, u32 mask)  in alg_test()  argument
141 const char *alg; member
145 int fips_allowed; /* set if alg is allowed in fips mode */
1236 pr_err("alg: generic driver name for \"%s\" would be too long\n", in build_generic_driver_name()
1265 pr_err("alg: %s: %s test failed (wrong result) on test vector %s, cfg=\"%s\"\n", in check_hash_result()
1270 pr_err("alg: %s: %s overran result buffer on test vector %s, cfg=\"%s\"\n", in check_hash_result()
1282 pr_err("alg: shash: %s %s() failed with err %d on test vector %s, cfg=\"%s\"\n", in check_shash_op()
1311 …pr_err("alg: shash: %s setkey failed on test vector %s; expected_error=%d, actual_error=%d, flags=… in test_shash_vec_cfg()
1317 pr_err("alg: shash: %s setkey unexpectedly succeeded on test vector %s; expected_error=%d\n", in test_shash_vec_cfg()
1326 pr_err("alg: shash: %s: error preparing scatterlist for test vector %s, cfg=\"%s\"\n", in test_shash_vec_cfg()
1350 …pr_err("alg: shash: %s digest() failed on test vector %s; expected_error=%d, actual_error=%d, cfg=… in test_shash_vec_cfg()
1356 …pr_err("alg: shash: %s digest() unexpectedly succeeded on test vector %s; expected_error=%d, cfg=\… in test_shash_vec_cfg()
1409 pr_err("alg: shash: %s export() overran state buffer on test vector %s, cfg=\"%s\"\n", in test_shash_vec_cfg()
1458 pr_err("alg: ahash: %s %s() failed with err %d on test vector %s, cfg=\"%s\"\n", in check_nonfinal_ahash_op()
1463 pr_err("alg: ahash: %s %s() used result buffer on test vector %s, cfg=\"%s\"\n", in check_nonfinal_ahash_op()
1498 …pr_err("alg: ahash: %s setkey failed on test vector %s; expected_error=%d, actual_error=%d, flags=… in test_ahash_vec_cfg()
1504 pr_err("alg: ahash: %s setkey unexpectedly succeeded on test vector %s; expected_error=%d\n", in test_ahash_vec_cfg()
1513 pr_err("alg: ahash: %s: error preparing scatterlist for test vector %s, cfg=\"%s\"\n", in test_ahash_vec_cfg()
1533 …pr_err("alg: ahash: %s digest() failed on test vector %s; expected_error=%d, actual_error=%d, cfg=… in test_ahash_vec_cfg()
1539 …pr_err("alg: ahash: %s digest() unexpectedly succeeded on test vector %s; expected_error=%d, cfg=\… in test_ahash_vec_cfg()
1588 pr_err("alg: ahash: %s export() overran state buffer on test vector %s, cfg=\"%s\"\n", in test_ahash_vec_cfg()
1617 pr_err("alg: ahash: %s final() failed with err %d on test vector %s, cfg=\"%s\"\n", in test_ahash_vec_cfg()
1625 pr_err("alg: ahash: %s finup() failed with err %d on test vector %s, cfg=\"%s\"\n", in test_ahash_vec_cfg()
1790 pr_warn("alg: hash: skipping comparison tests for %s because %s is unavailable\n", in test_hash_vs_generic_impl()
1794 pr_err("alg: hash: error allocating %s (generic impl of %s): %d\n", in test_hash_vs_generic_impl()
1814 pr_err("alg: hash: digestsize for %s (%u) doesn't match generic impl (%u)\n", in test_hash_vs_generic_impl()
1822 pr_err("alg: hash: blocksize for %s (%u) doesn't match generic impl (%u)\n", in test_hash_vs_generic_impl()
1881 pr_err("alg: hash: failed to allocate shash transform for %s: %ld\n", in alloc_shash()
1922 pr_err("alg: hash: failed to allocate transform for %s: %ld\n", in __alg_test_hash()
1930 pr_err("alg: hash: failed to allocate request for %s\n", in __alg_test_hash()
1946 pr_err("alg: hash: failed to allocate test buffers for %s\n", in __alg_test_hash()
1959 pr_err("alg: hash: failed to allocate hash state buffer for %s\n", in __alg_test_hash()
2010 pr_err("alg: hash: test vectors for %s out of order, " in alg_test_hash()
2011 "unkeyed ones must come first\n", desc->alg); in alg_test_hash()
2062 …pr_err("alg: aead: %s setkey failed on test vector %s; expected_error=%d, actual_error=%d, flags=%… in test_aead_vec_cfg()
2068 pr_err("alg: aead: %s setkey unexpectedly succeeded on test vector %s; expected_error=%d\n", in test_aead_vec_cfg()
2076 pr_err("alg: aead: %s setauthsize failed on test vector %s; expected_error=%d, actual_error=%d\n", in test_aead_vec_cfg()
2081 pr_err("alg: aead: %s setauthsize unexpectedly succeeded on test vector %s; expected_error=%d\n", in test_aead_vec_cfg()
2109 pr_err("alg: aead: %s %s: error preparing scatterlists for test vector %s, cfg=\"%s\"\n", in test_aead_vec_cfg()
2137 pr_err("alg: aead: %s %s corrupted request struct on test vector %s, cfg=\"%s\"\n", in test_aead_vec_cfg()
2140 pr_err("alg: aead: changed 'req->cryptlen'\n"); in test_aead_vec_cfg()
2142 pr_err("alg: aead: changed 'req->assoclen'\n"); in test_aead_vec_cfg()
2144 pr_err("alg: aead: changed 'req->iv'\n"); in test_aead_vec_cfg()
2146 pr_err("alg: aead: changed 'req->src'\n"); in test_aead_vec_cfg()
2148 pr_err("alg: aead: changed 'req->dst'\n"); in test_aead_vec_cfg()
2150 pr_err("alg: aead: changed 'req->base.tfm'\n"); in test_aead_vec_cfg()
2152 pr_err("alg: aead: changed 'req->base.complete'\n"); in test_aead_vec_cfg()
2154 pr_err("alg: aead: changed 'req->base.flags'\n"); in test_aead_vec_cfg()
2156 pr_err("alg: aead: changed 'req->base.data'\n"); in test_aead_vec_cfg()
2160 pr_err("alg: aead: %s %s corrupted src sgl on test vector %s, cfg=\"%s\"\n", in test_aead_vec_cfg()
2166 pr_err("alg: aead: %s %s corrupted dst sgl on test vector %s, cfg=\"%s\"\n", in test_aead_vec_cfg()
2185 …pr_err("alg: aead: %s %s failed on test vector %s; expected_error=%s, actual_error=%d, cfg=\"%s\"\… in test_aead_vec_cfg()
2190 …pr_err("alg: aead: %s %s unexpectedly succeeded on test vector %s; expected_error=%s, cfg=\"%s\"\n… in test_aead_vec_cfg()
2203 pr_err("alg: aead: %s %s overran dst buffer on test vector %s, cfg=\"%s\"\n", in test_aead_vec_cfg()
2208 pr_err("alg: aead: %s %s test failed (wrong result) on test vector %s, cfg=\"%s\"\n", in test_aead_vec_cfg()
2512 pr_warn("alg: aead: skipping comparison tests for %s because %s is unavailable\n", in test_aead_vs_generic_impl()
2516 pr_err("alg: aead: error allocating %s (generic impl of %s): %d\n", in test_aead_vs_generic_impl()
2531 pr_err("alg: aead: maxauthsize for %s (%u) doesn't match generic impl (%u)\n", in test_aead_vs_generic_impl()
2539 pr_err("alg: aead: ivsize for %s (%u) doesn't match generic impl (%u)\n", in test_aead_vs_generic_impl()
2547 pr_err("alg: aead: blocksize for %s (%u) doesn't match generic impl (%u)\n", in test_aead_vs_generic_impl()
2667 pr_err("alg: aead: empty test suite for %s\n", driver); in alg_test_aead()
2675 pr_err("alg: aead: failed to allocate transform for %s: %ld\n", in alg_test_aead()
2683 pr_err("alg: aead: failed to allocate request for %s\n", in alg_test_aead()
2691 pr_err("alg: aead: failed to allocate test buffers for %s\n", in alg_test_aead()
2760 …pr_err("alg: cipher: %s setkey failed on test vector %u; expected_error=%d, actual_error=%d, flags… in test_cipher()
2766 pr_err("alg: cipher: %s setkey unexpectedly succeeded on test vector %u; expected_error=%d\n", in test_cipher()
2784 printk(KERN_ERR "alg: cipher: Test %d failed " in test_cipher()
2831 …pr_err("alg: skcipher: %s setkey failed on test vector %s; expected_error=%d, actual_error=%d, fla… in test_skcipher_vec_cfg()
2837 pr_err("alg: skcipher: %s setkey unexpectedly succeeded on test vector %s; expected_error=%d\n", in test_skcipher_vec_cfg()
2860 pr_err("alg: skcipher: %s %s: error preparing scatterlists for test vector %s, cfg=\"%s\"\n", in test_skcipher_vec_cfg()
2886 pr_err("alg: skcipher: %s %s corrupted request struct on test vector %s, cfg=\"%s\"\n", in test_skcipher_vec_cfg()
2889 pr_err("alg: skcipher: changed 'req->cryptlen'\n"); in test_skcipher_vec_cfg()
2891 pr_err("alg: skcipher: changed 'req->iv'\n"); in test_skcipher_vec_cfg()
2893 pr_err("alg: skcipher: changed 'req->src'\n"); in test_skcipher_vec_cfg()
2895 pr_err("alg: skcipher: changed 'req->dst'\n"); in test_skcipher_vec_cfg()
2897 pr_err("alg: skcipher: changed 'req->base.tfm'\n"); in test_skcipher_vec_cfg()
2899 pr_err("alg: skcipher: changed 'req->base.complete'\n"); in test_skcipher_vec_cfg()
2901 pr_err("alg: skcipher: changed 'req->base.flags'\n"); in test_skcipher_vec_cfg()
2903 pr_err("alg: skcipher: changed 'req->base.data'\n"); in test_skcipher_vec_cfg()
2907 pr_err("alg: skcipher: %s %s corrupted src sgl on test vector %s, cfg=\"%s\"\n", in test_skcipher_vec_cfg()
2913 pr_err("alg: skcipher: %s %s corrupted dst sgl on test vector %s, cfg=\"%s\"\n", in test_skcipher_vec_cfg()
2922 …pr_err("alg: skcipher: %s %s failed on test vector %s; expected_error=%d, actual_error=%d, cfg=\"%… in test_skcipher_vec_cfg()
2927 …pr_err("alg: skcipher: %s %s unexpectedly succeeded on test vector %s; expected_error=%d, cfg=\"%s… in test_skcipher_vec_cfg()
2936 pr_err("alg: skcipher: %s %s overran dst buffer on test vector %s, cfg=\"%s\"\n", in test_skcipher_vec_cfg()
2941 pr_err("alg: skcipher: %s %s test failed (wrong result) on test vector %s, cfg=\"%s\"\n", in test_skcipher_vec_cfg()
2948 pr_err("alg: skcipher: %s %s test failed (wrong output IV) on test vector %s, cfg=\"%s\"\n", in test_skcipher_vec_cfg()
3100 pr_warn("alg: skcipher: skipping comparison tests for %s because %s is unavailable\n", in test_skcipher_vs_generic_impl()
3104 pr_err("alg: skcipher: error allocating %s (generic impl of %s): %d\n", in test_skcipher_vs_generic_impl()
3125 pr_err("alg: skcipher: min keysize for %s (%u) doesn't match generic impl (%u)\n", in test_skcipher_vs_generic_impl()
3133 pr_err("alg: skcipher: max keysize for %s (%u) doesn't match generic impl (%u)\n", in test_skcipher_vs_generic_impl()
3141 pr_err("alg: skcipher: ivsize for %s (%u) doesn't match generic impl (%u)\n", in test_skcipher_vs_generic_impl()
3148 pr_err("alg: skcipher: blocksize for %s (%u) doesn't match generic impl (%u)\n", in test_skcipher_vs_generic_impl()
3224 pr_err("alg: skcipher: empty test suite for %s\n", driver); in alg_test_skcipher()
3232 pr_err("alg: skcipher: failed to allocate transform for %s: %ld\n", in alg_test_skcipher()
3240 pr_err("alg: skcipher: failed to allocate request for %s\n", in alg_test_skcipher()
3248 pr_err("alg: skcipher: failed to allocate test buffers for %s\n", in alg_test_skcipher()
3311 pr_err("alg: acomp: request alloc failed for %s\n", in test_acomp()
3324 pr_err("alg: acomp: compression failed on test %d for %s: ret=%d\n", in test_acomp()
3340 pr_err("alg: acomp: compression failed on test %d for %s: ret=%d\n", in test_acomp()
3348 pr_err("alg: acomp: Compression test %d failed for %s: output len = %d\n", in test_acomp()
3357 pr_err("alg: acomp: Compression test %d failed for %s\n", in test_acomp()
3388 pr_err("alg: acomp: request alloc failed for %s\n", in test_acomp()
3401 pr_err("alg: acomp: decompression failed on test %d for %s: ret=%d\n", in test_acomp()
3409 pr_err("alg: acomp: Decompression test %d failed for %s: output len = %d\n", in test_acomp()
3418 pr_err("alg: acomp: Decompression test %d failed for %s\n", in test_acomp()
3450 printk(KERN_ERR "alg: cipher: Failed to load transform for " in alg_test_cipher()
3473 pr_err("alg: acomp: Failed to load transform for %s: %ld\n", in alg_test_comp()
3502 printk(KERN_ERR "alg: drbg: could not allocate DRNG handle for " in drbg_cavs_test()
3512 printk(KERN_ERR "alg: drbg: Failed to reset rng\n"); in drbg_cavs_test()
3526 printk(KERN_ERR "alg: drbg: could not obtain random data for " in drbg_cavs_test()
3541 printk(KERN_ERR "alg: drbg: could not obtain random data for " in drbg_cavs_test()
3570 printk(KERN_ERR "alg: drbg: Test %d failed for %s\n", in alg_test_drbg()
3581 const char *alg) in do_test_kpp() argument
3621 pr_err("alg: %s: Party A: generate public key test failed. err %d\n", in do_test_kpp()
3622 alg, err); in do_test_kpp()
3637 pr_err("alg: %s: Party A: generate public key test failed. Invalid output\n", in do_test_kpp()
3638 alg); in do_test_kpp()
3659 pr_err("alg: %s: Party A: compute shared secret test failed. err %d\n", in do_test_kpp()
3660 alg, err); in do_test_kpp()
3690 pr_err("alg: %s: Party B: compute shared secret failed. err %d\n", in do_test_kpp()
3691 alg, err); in do_test_kpp()
3706 pr_err("alg: %s: compute shared secret test failed. Invalid output\n", in do_test_kpp()
3707 alg); in do_test_kpp()
3722 static int test_kpp(struct crypto_kpp *tfm, const char *alg, in test_kpp() argument
3728 ret = do_test_kpp(tfm, vecs++, alg); in test_kpp()
3730 pr_err("alg: %s: test failed on vector %d, err=%d\n", in test_kpp()
3731 alg, i + 1, ret); in test_kpp()
3748 pr_err("alg: kpp: Failed to load tfm for %s: %ld\n", in alg_test_kpp()
3753 err = test_kpp(tfm, desc->alg, desc->suite.kpp.vecs, in alg_test_kpp()
3824 pr_err("alg: akcipher: encrypt test failed. err %d\n", err); in test_akcipher_one()
3829 pr_err("alg: akcipher: encrypt test failed. Invalid output len\n"); in test_akcipher_one()
3835 pr_err("alg: akcipher: encrypt test failed. Invalid output\n"); in test_akcipher_one()
3873 pr_err("alg: akcipher: decrypt test failed. err %d\n", err); in test_akcipher_one()
3878 pr_err("alg: akcipher: decrypt test failed. Invalid output len %u\n", in test_akcipher_one()
3887 pr_err("alg: akcipher: decrypt test failed. Invalid output\n"); in test_akcipher_one()
3901 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() argument
3914 pr_err("alg: akcipher: test %d failed for %s, err=%d\n", in test_akcipher()
3931 pr_err("alg: akcipher: Failed to load tfm for %s: %ld\n", in alg_test_akcipher()
3936 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher()
3974 pr_err("alg: sig: verify test failed: err %d\n", err); in test_sig_one()
3987 pr_err("alg: sig: invalid maxsize %u\n", sig_size); in test_sig_one()
3998 pr_err("alg: sig: sign test failed: err %d\n", err); in test_sig_one()
4006 pr_err("alg: sig: sign test failed: invalid output\n"); in test_sig_one()
4014 static int test_sig(struct crypto_sig *tfm, const char *alg, in test_sig() argument
4023 pr_err("alg: sig: test %d failed for %s: err %d\n", in test_sig()
4039 pr_err("alg: sig: Failed to load tfm for %s: %ld\n", in alg_test_sig()
4044 err = test_sig(tfm, desc->alg, desc->suite.sig.vecs, in alg_test_sig()
4063 .alg = "adiantum(xchacha12,aes)",
4070 .alg = "adiantum(xchacha20,aes)",
4077 .alg = "aegis128",
4083 .alg = "authenc(hmac(md5),cbc(des3_ede))",
4090 .alg = "authenc(hmac(md5),ecb(cipher_null))",
4097 .alg = "authenc(hmac(sha1),cbc(aes))",
4105 .alg = "authenc(hmac(sha1),cbc(des))",
4112 .alg = "authenc(hmac(sha1),cbc(des3_ede))",
4119 .alg = "authenc(hmac(sha1),ctr(aes))",
4123 .alg = "authenc(hmac(sha1),ecb(cipher_null))",
4130 .alg = "authenc(hmac(sha1),rfc3686(ctr(aes)))",
4134 .alg = "authenc(hmac(sha224),cbc(aes))",
4141 .alg = "authenc(hmac(sha224),cbc(des))",
4148 .alg = "authenc(hmac(sha224),cbc(des3_ede))",
4155 .alg = "authenc(hmac(sha224),rfc3686(ctr(aes)))",
4159 .alg = "authenc(hmac(sha256),cbc(aes))",
4167 .alg = "authenc(hmac(sha256),cbc(des))",
4174 .alg = "authenc(hmac(sha256),cbc(des3_ede))",
4181 .alg = "authenc(hmac(sha256),ctr(aes))",
4185 .alg = "authenc(hmac(sha256),cts(cbc(aes)))",
4192 .alg = "authenc(hmac(sha256),rfc3686(ctr(aes)))",
4196 .alg = "authenc(hmac(sha384),cbc(aes))",
4203 .alg = "authenc(hmac(sha384),cbc(des))",
4210 .alg = "authenc(hmac(sha384),cbc(des3_ede))",
4217 .alg = "authenc(hmac(sha384),ctr(aes))",
4221 .alg = "authenc(hmac(sha384),cts(cbc(aes)))",
4228 .alg = "authenc(hmac(sha384),rfc3686(ctr(aes)))",
4232 .alg = "authenc(hmac(sha512),cbc(aes))",
4240 .alg = "authenc(hmac(sha512),cbc(des))",
4247 .alg = "authenc(hmac(sha512),cbc(des3_ede))",
4254 .alg = "authenc(hmac(sha512),ctr(aes))",
4258 .alg = "authenc(hmac(sha512),rfc3686(ctr(aes)))",
4262 .alg = "blake2b-160",
4270 .alg = "blake2b-256",
4278 .alg = "blake2b-384",
4286 .alg = "blake2b-512",
4294 .alg = "cbc(aes)",
4302 .alg = "cbc(anubis)",
4308 .alg = "cbc(aria)",
4314 .alg = "cbc(blowfish)",
4320 .alg = "cbc(camellia)",
4326 .alg = "cbc(cast5)",
4332 .alg = "cbc(cast6)",
4338 .alg = "cbc(des)",
4344 .alg = "cbc(des3_ede)",
4353 .alg = "cbc(paes)",
4360 .alg = "cbc(psm4)",
4363 .alg = "cbc(serpent)",
4369 .alg = "cbc(sm4)",
4375 .alg = "cbc(twofish)",
4382 .alg = "cbc-paes-s390",
4390 .alg = "cbcmac(aes)",
4397 .alg = "cbcmac(sm4)",
4403 .alg = "ccm(aes)",
4414 .alg = "ccm(sm4)",
4424 .alg = "chacha20",
4431 .alg = "cmac(aes)",
4439 .alg = "cmac(camellia)",
4445 .alg = "cmac(des3_ede)",
4451 .alg = "cmac(sm4)",
4457 .alg = "crc32",
4465 .alg = "crc32c",
4473 .alg = "ctr(aes)",
4481 .alg = "ctr(aria)",
4487 .alg = "ctr(blowfish)",
4493 .alg = "ctr(camellia)",
4499 .alg = "ctr(cast5)",
4505 .alg = "ctr(cast6)",
4511 .alg = "ctr(des)",
4517 .alg = "ctr(des3_ede)",
4526 .alg = "ctr(paes)",
4534 .alg = "ctr(psm4)",
4537 .alg = "ctr(serpent)",
4543 .alg = "ctr(sm4)",
4549 .alg = "ctr(twofish)",
4556 .alg = "ctr-paes-s390",
4564 .alg = "cts(cbc(aes))",
4575 .alg = "cts(cbc(paes))",
4579 .alg = "cts(cbc(sm4))",
4585 .alg = "deflate",
4595 .alg = "deflate-iaa",
4605 .alg = "dh",
4611 .alg = "digest_null",
4614 .alg = "drbg_nopr_ctr_aes128",
4621 .alg = "drbg_nopr_ctr_aes192",
4628 .alg = "drbg_nopr_ctr_aes256",
4635 .alg = "drbg_nopr_hmac_sha256",
4646 .alg = "drbg_nopr_hmac_sha384",
4650 .alg = "drbg_nopr_hmac_sha512",
4657 .alg = "drbg_nopr_sha256",
4665 .alg = "drbg_nopr_sha384",
4669 .alg = "drbg_nopr_sha512",
4673 .alg = "drbg_pr_ctr_aes128",
4681 .alg = "drbg_pr_ctr_aes192",
4685 .alg = "drbg_pr_ctr_aes256",
4689 .alg = "drbg_pr_hmac_sha256",
4697 .alg = "drbg_pr_hmac_sha384",
4701 .alg = "drbg_pr_hmac_sha512",
4705 .alg = "drbg_pr_sha256",
4713 .alg = "drbg_pr_sha384",
4717 .alg = "drbg_pr_sha512",
4721 .alg = "ecb(aes)",
4729 .alg = "ecb(anubis)",
4735 .alg = "ecb(arc4)",
4742 .alg = "ecb(aria)",
4748 .alg = "ecb(blowfish)",
4754 .alg = "ecb(camellia)",
4760 .alg = "ecb(cast5)",
4766 .alg = "ecb(cast6)",
4772 .alg = "ecb(cipher_null)",
4776 .alg = "ecb(des)",
4782 .alg = "ecb(des3_ede)",
4788 .alg = "ecb(fcrypt)",
4797 .alg = "ecb(khazad)",
4806 .alg = "ecb(paes)",
4810 .alg = "ecb(seed)",
4816 .alg = "ecb(serpent)",
4822 .alg = "ecb(sm4)",
4828 .alg = "ecb(tea)",
4834 .alg = "ecb(twofish)",
4840 .alg = "ecb(xeta)",
4846 .alg = "ecb(xtea)",
4853 .alg = "ecb-paes-s390",
4861 .alg = "ecdh-nist-p192",
4867 .alg = "ecdh-nist-p256",
4874 .alg = "ecdh-nist-p384",
4881 .alg = "ecdsa-nist-p192",
4887 .alg = "ecdsa-nist-p256",
4894 .alg = "ecdsa-nist-p384",
4901 .alg = "ecdsa-nist-p521",
4908 .alg = "ecrdsa",
4914 .alg = "essiv(authenc(hmac(sha256),cbc(aes)),sha256)",
4922 .alg = "essiv(cbc(aes),sha256)",
4931 .alg = "ffdhe2048(dh)",
4938 .alg = "ffdhe3072(dh)",
4945 .alg = "ffdhe4096(dh)",
4952 .alg = "ffdhe6144(dh)",
4959 .alg = "ffdhe8192(dh)",
4967 .alg = "gcm(aes)",
4975 .alg = "gcm(aria)",
4982 .alg = "gcm(sm4)",
4989 .alg = "ghash",
4995 .alg = "hctr2(aes)",
5002 .alg = "hmac(md5)",
5009 .alg = "hmac(rmd160)",
5015 .alg = "hmac(sha1)",
5023 .alg = "hmac(sha224)",
5031 .alg = "hmac(sha256)",
5039 .alg = "hmac(sha3-224)",
5047 .alg = "hmac(sha3-256)",
5055 .alg = "hmac(sha3-384)",
5063 .alg = "hmac(sha3-512)",
5071 .alg = "hmac(sha384)",
5079 .alg = "hmac(sha512)",
5087 .alg = "hmac(sm3)",
5093 .alg = "hmac(streebog256)",
5099 .alg = "hmac(streebog512)",
5105 .alg = "jitterentropy_rng",
5109 .alg = "krb5enc(cmac(camellia),cts(cbc(camellia)))",
5113 .alg = "lrw(aes)",
5120 .alg = "lrw(camellia)",
5127 .alg = "lrw(cast6)",
5134 .alg = "lrw(serpent)",
5141 .alg = "lrw(twofish)",
5148 .alg = "lz4",
5158 .alg = "lz4hc",
5168 .alg = "lzo",
5178 .alg = "lzo-rle",
5188 .alg = "md4",
5194 .alg = "md5",
5201 .alg = "michael_mic",
5207 .alg = "p1363(ecdsa-nist-p192)",
5210 .alg = "p1363(ecdsa-nist-p256)",
5217 .alg = "p1363(ecdsa-nist-p384)",
5221 .alg = "p1363(ecdsa-nist-p521)",
5225 .alg = "pcbc(fcrypt)",
5232 .alg = "phmac(sha224)",
5239 .alg = "phmac(sha256)",
5246 .alg = "phmac(sha384)",
5253 .alg = "phmac(sha512)",
5261 .alg = "pkcs1(rsa,none)",
5267 .alg = "pkcs1(rsa,sha224)",
5271 .alg = "pkcs1(rsa,sha256)",
5278 .alg = "pkcs1(rsa,sha3-256)",
5282 .alg = "pkcs1(rsa,sha3-384)",
5286 .alg = "pkcs1(rsa,sha3-512)",
5290 .alg = "pkcs1(rsa,sha384)",
5294 .alg = "pkcs1(rsa,sha512)",
5298 .alg = "pkcs1pad(rsa)",
5302 .alg = "rfc3686(ctr(aes))",
5310 .alg = "rfc3686(ctr(sm4))",
5316 .alg = "rfc4106(gcm(aes))",
5328 .alg = "rfc4309(ccm(aes))",
5340 .alg = "rfc4543(gcm(aes))",
5351 .alg = "rfc7539(chacha20,poly1305)",
5358 .alg = "rfc7539esp(chacha20,poly1305)",
5369 .alg = "rmd160",
5375 .alg = "rsa",
5382 .alg = "sha1",
5390 .alg = "sha224",
5398 .alg = "sha256",
5406 .alg = "sha3-224",
5414 .alg = "sha3-256",
5422 .alg = "sha3-384",
5430 .alg = "sha3-512",
5438 .alg = "sha384",
5446 .alg = "sha512",
5454 .alg = "sm3",
5460 .alg = "streebog256",
5466 .alg = "streebog512",
5472 .alg = "wp256",
5478 .alg = "wp384",
5484 .alg = "wp512",
5490 .alg = "x962(ecdsa-nist-p192)",
5496 .alg = "x962(ecdsa-nist-p256)",
5503 .alg = "x962(ecdsa-nist-p384)",
5510 .alg = "x962(ecdsa-nist-p521)",
5517 .alg = "xcbc(aes)",
5524 .alg = "xcbc(sm4)",
5530 .alg = "xchacha12",
5537 .alg = "xchacha20",
5544 .alg = "xctr(aes)",
5551 .alg = "xts(aes)",
5559 .alg = "xts(camellia)",
5566 .alg = "xts(cast6)",
5576 .alg = "xts(paes)",
5580 .alg = "xts(serpent)",
5587 .alg = "xts(sm4)",
5594 .alg = "xts(twofish)",
5602 .alg = "xts-paes-s390",
5610 .alg = "xxhash64",
5617 .alg = "zstd",
5634 int diff = strcmp(alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5635 alg_test_descs[i].alg); in alg_check_test_descs_order()
5639 alg_test_descs[i - 1].alg, in alg_check_test_descs_order()
5640 alg_test_descs[i].alg); in alg_check_test_descs_order()
5645 alg_test_descs[i].alg); in alg_check_test_descs_order()
5669 pr_warn("alg: full crypto tests enabled. This is intended for developer use only.\n"); in testmgr_onetime_init()
5672 static int alg_find_test(const char *alg) in alg_find_test() argument
5679 int diff = strcmp(alg_test_descs[i].alg, alg); in alg_find_test()
5697 static int alg_fips_disabled(const char *driver, const char *alg) in alg_fips_disabled() argument
5699 pr_info("alg: %s (%s) is disabled due to FIPS\n", alg, driver); in alg_fips_disabled()
5704 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
5711 printk_once(KERN_INFO "alg: self-tests disabled\n"); in alg_test()
5720 if (snprintf(nalg, sizeof(nalg), "ecb(%s)", alg) >= in alg_test()
5735 i = alg_find_test(alg); in alg_test()
5760 panic("alg: self-tests for %s (%s) failed in fips mode!\n", in alg_test()
5761 driver, alg); in alg_test()
5763 pr_warn("alg: self-tests for %s using %s failed (rc=%d)", in alg_test()
5764 alg, driver, rc); in alg_test()
5766 "alg: self-tests for %s using %s failed (rc=%d)", in alg_test()
5767 alg, driver, rc); in alg_test()
5770 pr_info("alg: self-tests for %s (%s) passed\n", in alg_test()
5771 driver, alg); in alg_test()
5780 if (snprintf(nalg, sizeof(nalg), "ecb(%s)", alg) >= in alg_test()
5796 printk(KERN_INFO "alg: No test for %s (%s)\n", alg, driver); in alg_test()
5799 return alg_fips_disabled(driver, alg); in alg_test()
5803 return alg_fips_disabled(driver, alg); in alg_test()