/kernel/linux/linux-5.10/crypto/ |
D | rsa.c | 160 struct rsa_key raw_key = {0}; in rsa_set_pub_key() local 166 ret = rsa_parse_pub_key(&raw_key, key, keylen); in rsa_set_pub_key() 170 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_pub_key() 174 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key() 194 struct rsa_key raw_key = {0}; in rsa_set_priv_key() local 200 ret = rsa_parse_priv_key(&raw_key, key, keylen); in rsa_set_priv_key() 204 mpi_key->d = mpi_read_raw_data(raw_key.d, raw_key.d_sz); in rsa_set_priv_key() 208 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_priv_key() 212 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
|
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
D | caampkc.c | 938 struct rsa_key raw_key = {NULL}; in caam_rsa_set_pub_key() local 945 ret = rsa_parse_pub_key(&raw_key, key, keylen); in caam_rsa_set_pub_key() 950 rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL); in caam_rsa_set_pub_key() 960 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key() 964 if (caam_rsa_check_key_length(raw_key.n_sz << 3)) { in caam_rsa_set_pub_key() 969 rsa_key->e_sz = raw_key.e_sz; in caam_rsa_set_pub_key() 970 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_pub_key() 979 struct rsa_key *raw_key) in caam_rsa_set_priv_key_form() argument 982 size_t p_sz = raw_key->p_sz; in caam_rsa_set_priv_key_form() 983 size_t q_sz = raw_key->q_sz; in caam_rsa_set_priv_key_form() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/ccp/ |
D | ccp-crypto-rsa.c | 130 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()
|
/kernel/linux/linux-5.10/fs/crypto/ |
D | keysetup_v1.c | 180 const u8 *raw_key, const struct fscrypt_info *ci) in find_or_insert_direct_key() argument 204 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key() 220 fscrypt_get_direct_key(const struct fscrypt_info *ci, const u8 *raw_key) in fscrypt_get_direct_key() argument 226 dk = find_or_insert_direct_key(NULL, raw_key, ci); in fscrypt_get_direct_key() 236 err = fscrypt_prepare_key(&dk->dk_key, raw_key, ci); in fscrypt_get_direct_key() 241 memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); in fscrypt_get_direct_key() 243 return find_or_insert_direct_key(dk, raw_key, ci); in fscrypt_get_direct_key()
|
D | keysetup.c | 78 fscrypt_allocate_skcipher(struct fscrypt_mode *mode, const u8 *raw_key, in fscrypt_allocate_skcipher() argument 111 err = crypto_skcipher_setkey(tfm, raw_key, mode->keysize); in fscrypt_allocate_skcipher() 128 const u8 *raw_key, const struct fscrypt_info *ci) in fscrypt_prepare_key() argument 133 return fscrypt_prepare_inline_crypt_key(prep_key, raw_key, ci); in fscrypt_prepare_key() 135 tfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci->ci_inode); in fscrypt_prepare_key() 157 int fscrypt_set_per_file_enc_key(struct fscrypt_info *ci, const u8 *raw_key) in fscrypt_set_per_file_enc_key() argument 160 return fscrypt_prepare_key(&ci->ci_enc_key, raw_key, ci); in fscrypt_set_per_file_enc_key()
|
D | fscrypt_private.h | 343 const u8 *raw_key, 384 const u8 *raw_key, in fscrypt_prepare_inline_crypt_key() argument 594 const u8 *raw_key, const struct fscrypt_info *ci); 598 int fscrypt_set_per_file_enc_key(struct fscrypt_info *ci, const u8 *raw_key);
|
D | inline_crypt.c | 127 const u8 *raw_key, in fscrypt_prepare_inline_crypt_key() argument 146 err = blk_crypto_init_key(&blk_key->base, raw_key, crypto_mode, in fscrypt_prepare_inline_crypt_key()
|
/kernel/linux/linux-5.10/lib/crypto/ |
D | poly1305-donna32.c | 14 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()
|
D | poly1305-donna64.c | 16 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()
|
/kernel/linux/linux-5.10/include/crypto/internal/ |
D | poly1305.h | 22 const u8 raw_key[POLY1305_BLOCK_SIZE]);
|
/kernel/linux/linux-5.10/include/linux/ |
D | blk-crypto.h | 92 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key,
|
/kernel/linux/linux-5.10/block/ |
D | blk-crypto.c | 320 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key, in blk_crypto_init_key() argument 347 memcpy(blk_key->raw, raw_key, mode->keysize); in blk_crypto_init_key()
|