Searched refs:pkey (Results 1 – 2 of 2) sorted by relevance
/crypto/asymmetric_keys/ |
D | public_key.c | 67 const struct public_key *pkey, in software_key_determine_akcipher() argument 80 pkey->pkey_algo); in software_key_determine_akcipher() 84 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher() 89 strcpy(alg_name, pkey->pkey_algo); in software_key_determine_akcipher() 109 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query() local 116 pkey, alg_name); in software_key_query() 125 key = kmalloc(pkey->keylen + sizeof(u32) * 2 + pkey->paramlen, in software_key_query() 129 memcpy(key, pkey->key, pkey->keylen); in software_key_query() 130 ptr = key + pkey->keylen; in software_key_query() 131 ptr = pkey_pack_u32(ptr, pkey->algo); in software_key_query() [all …]
|
/crypto/ |
D | rsa.c | 57 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_enc() local 65 if (unlikely(!pkey->n || !pkey->e)) { in rsa_enc() 75 ret = _rsa_enc(pkey, c, m); in rsa_enc() 96 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_dec() local 104 if (unlikely(!pkey->n || !pkey->d)) { in rsa_dec() 114 ret = _rsa_dec(pkey, m, c); in rsa_dec() 230 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_max_size() local 232 return mpi_get_size(pkey->n); in rsa_max_size() 237 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_exit_tfm() local 239 rsa_free_mpi_key(pkey); in rsa_exit_tfm()
|