Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 4 of 4) sorted by relevance

/crypto/asymmetric_keys/
Dpublic_key.c56 pkey_id_type_name[key->id_type], key->algo->name); in public_key_describe()
81 const struct public_key_algorithm *algo; in public_key_verify_signature() local
90 algo = pk->algo; in public_key_verify_signature()
91 if (!algo) { in public_key_verify_signature()
94 algo = pkey_algo[pk->pkey_algo]; in public_key_verify_signature()
95 if (!algo) in public_key_verify_signature()
99 if (!algo->verify_signature) in public_key_verify_signature()
102 if (sig->nr_mpi != algo->n_sig_mpi) { in public_key_verify_signature()
104 sig->nr_mpi, algo->n_sig_mpi); in public_key_verify_signature()
108 return algo->verify_signature(pk, sig); in public_key_verify_signature()
Dx509_public_key.c312 cert->pub->algo = pkey_algo[cert->pub->pkey_algo]; in x509_key_preparse()
/crypto/
Dtestmgr.c205 const char *algo = crypto_tfm_alg_driver_name(crypto_ahash_tfm(tfm)); in __test_hash() local
230 "%s\n", algo); in __test_hash()
258 j, algo, template[i].ksize, MAX_KEYLEN); in __test_hash()
266 "test %d for %s: ret=%d\n", j, algo, in __test_hash()
277 "for %s: ret=%d\n", j, algo, -ret); in __test_hash()
284 "for %s: ret=%d\n", j, algo, -ret); in __test_hash()
290 "for %s: ret=%d\n", j, algo, -ret); in __test_hash()
296 "for %s: ret=%d\n", j, algo, -ret); in __test_hash()
304 j, algo); in __test_hash()
342 j, algo, template[i].ksize, MAX_KEYLEN); in __test_hash()
[all …]
Dtcrypt.c303 static void test_aead_speed(const char *algo, int enc, unsigned int secs, in test_aead_speed() argument
351 tfm = crypto_alloc_aead(algo, 0, 0); in test_aead_speed()
354 pr_err("alg: aead: Failed to load transform for %s: %ld\n", algo, in test_aead_speed()
360 printk(KERN_INFO "\ntesting speed of %s (%s) %s\n", algo, in test_aead_speed()
366 algo); in test_aead_speed()
461 static void test_cipher_speed(const char *algo, int enc, unsigned int secs, in test_cipher_speed() argument
478 tfm = crypto_alloc_blkcipher(algo, 0, CRYPTO_ALG_ASYNC); in test_cipher_speed()
481 printk("failed to load transform for %s: %ld\n", algo, in test_cipher_speed()
488 printk(KERN_INFO "\ntesting speed of %s (%s) %s\n", algo, in test_cipher_speed()
730 static void test_hash_speed(const char *algo, unsigned int secs, in test_hash_speed() argument
[all …]