Home
last modified time | relevance | path

Searched refs:raw_key (Results 1 – 12 of 12) sorted by relevance

/linux-6.3-rc2/crypto/
A Drsa.c212 struct rsa_key raw_key = {0}; in rsa_set_pub_key() local
222 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_pub_key()
226 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key()
256 mpi_key->d = mpi_read_raw_data(raw_key.d, raw_key.d_sz); in rsa_set_priv_key()
260 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_priv_key()
264 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
268 mpi_key->p = mpi_read_raw_data(raw_key.p, raw_key.p_sz); in rsa_set_priv_key()
272 mpi_key->q = mpi_read_raw_data(raw_key.q, raw_key.q_sz); in rsa_set_priv_key()
276 mpi_key->dp = mpi_read_raw_data(raw_key.dp, raw_key.dp_sz); in rsa_set_priv_key()
280 mpi_key->dq = mpi_read_raw_data(raw_key.dq, raw_key.dq_sz); in rsa_set_priv_key()
[all …]
/linux-6.3-rc2/drivers/crypto/caam/
A Dcaampkc.c953 rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_KERNEL); in caam_rsa_set_pub_key()
963 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key()
972 rsa_key->e_sz = raw_key.e_sz; in caam_rsa_set_pub_key()
985 size_t p_sz = raw_key->p_sz; in caam_rsa_set_priv_key_form()
986 size_t q_sz = raw_key->q_sz; in caam_rsa_set_priv_key_form()
1011 rsa_key->dp = caam_read_rsa_crt(raw_key->dp, raw_key->dp_sz, p_sz); in caam_rsa_set_priv_key_form()
1015 rsa_key->dq = caam_read_rsa_crt(raw_key->dq, raw_key->dq_sz, q_sz); in caam_rsa_set_priv_key_form()
1019 rsa_key->qinv = caam_read_rsa_crt(raw_key->qinv, raw_key->qinv_sz, in caam_rsa_set_priv_key_form()
1058 rsa_key->d = kmemdup(raw_key.d, raw_key.d_sz, GFP_KERNEL); in caam_rsa_set_priv_key()
1062 rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_KERNEL); in caam_rsa_set_priv_key()
[all …]
/linux-6.3-rc2/drivers/crypto/ccp/
A Dccp-crypto-rsa.c130 struct rsa_key raw_key; in ccp_rsa_setkey() local
134 memset(&raw_key, 0, sizeof(raw_key)); in ccp_rsa_setkey()
138 ret = rsa_parse_priv_key(&raw_key, key, keylen); in ccp_rsa_setkey()
140 ret = rsa_parse_pub_key(&raw_key, key, keylen); in ccp_rsa_setkey()
145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey()
157 raw_key.e, raw_key.e_sz); in ccp_rsa_setkey()
165 raw_key.d, raw_key.d_sz); in ccp_rsa_setkey()
/linux-6.3-rc2/fs/crypto/
A Dkeysetup_v1.c181 const u8 *raw_key, const struct fscrypt_info *ci) in find_or_insert_direct_key() argument
205 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key()
221 fscrypt_get_direct_key(const struct fscrypt_info *ci, const u8 *raw_key) in fscrypt_get_direct_key() argument
227 dk = find_or_insert_direct_key(NULL, raw_key, ci); in fscrypt_get_direct_key()
238 err = fscrypt_prepare_key(&dk->dk_key, raw_key, ci); in fscrypt_get_direct_key()
243 memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); in fscrypt_get_direct_key()
245 return find_or_insert_direct_key(dk, raw_key, ci); in fscrypt_get_direct_key()
A Dkeysetup.c100 fscrypt_allocate_skcipher(struct fscrypt_mode *mode, const u8 *raw_key, in fscrypt_allocate_skcipher() argument
133 err = crypto_skcipher_setkey(tfm, raw_key, mode->keysize); in fscrypt_allocate_skcipher()
151 const u8 *raw_key, const struct fscrypt_info *ci) in fscrypt_prepare_key() argument
156 return fscrypt_prepare_inline_crypt_key(prep_key, raw_key, ci); in fscrypt_prepare_key()
158 tfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci->ci_inode); in fscrypt_prepare_key()
181 int fscrypt_set_per_file_enc_key(struct fscrypt_info *ci, const u8 *raw_key) in fscrypt_set_per_file_enc_key() argument
184 return fscrypt_prepare_key(&ci->ci_enc_key, raw_key, ci); in fscrypt_set_per_file_enc_key()
A Dfscrypt_private.h344 const u8 *raw_key,
386 const u8 *raw_key, in fscrypt_prepare_inline_crypt_key() argument
601 const u8 *raw_key, const struct fscrypt_info *ci);
606 int fscrypt_set_per_file_enc_key(struct fscrypt_info *ci, const u8 *raw_key);
A Dinline_crypt.c154 const u8 *raw_key, in fscrypt_prepare_inline_crypt_key() argument
170 err = blk_crypto_init_key(blk_key, raw_key, crypto_mode, in fscrypt_prepare_inline_crypt_key()
/linux-6.3-rc2/lib/crypto/
A Dpoly1305-donna32.c14 const u8 raw_key[POLY1305_BLOCK_SIZE]) in poly1305_core_setkey()
17 key->key.r[0] = (get_unaligned_le32(&raw_key[0])) & 0x3ffffff; in poly1305_core_setkey()
18 key->key.r[1] = (get_unaligned_le32(&raw_key[3]) >> 2) & 0x3ffff03; in poly1305_core_setkey()
19 key->key.r[2] = (get_unaligned_le32(&raw_key[6]) >> 4) & 0x3ffc0ff; in poly1305_core_setkey()
20 key->key.r[3] = (get_unaligned_le32(&raw_key[9]) >> 6) & 0x3f03fff; in poly1305_core_setkey()
21 key->key.r[4] = (get_unaligned_le32(&raw_key[12]) >> 8) & 0x00fffff; in poly1305_core_setkey()
A Dpoly1305-donna64.c16 const u8 raw_key[POLY1305_BLOCK_SIZE]) in poly1305_core_setkey()
21 t0 = get_unaligned_le64(&raw_key[0]); in poly1305_core_setkey()
22 t1 = get_unaligned_le64(&raw_key[8]); in poly1305_core_setkey()
/linux-6.3-rc2/include/crypto/internal/
A Dpoly1305.h22 const u8 raw_key[POLY1305_BLOCK_SIZE]);
/linux-6.3-rc2/include/linux/
A Dblk-crypto.h90 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key,
/linux-6.3-rc2/block/
A Dblk-crypto.c327 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key, in blk_crypto_init_key() argument
354 memcpy(blk_key->raw, raw_key, mode->keysize); in blk_crypto_init_key()

Completed in 18 milliseconds