Searched refs:raw_key (Results 1 – 4 of 4) sorted by relevance
/fs/crypto/ |
D | keysetup_v1.c | 182 const u8 *raw_key, in find_or_insert_direct_key() argument 207 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key() 223 fscrypt_get_direct_key(const struct fscrypt_inode_info *ci, const u8 *raw_key) in fscrypt_get_direct_key() argument 229 dk = find_or_insert_direct_key(NULL, raw_key, ci); in fscrypt_get_direct_key() 240 err = fscrypt_prepare_key(&dk->dk_key, raw_key, ci); in fscrypt_get_direct_key() 245 memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); in fscrypt_get_direct_key() 247 return find_or_insert_direct_key(dk, raw_key, ci); in fscrypt_get_direct_key()
|
D | keysetup.c | 100 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_inode_info *ci) in fscrypt_prepare_key() argument 156 return fscrypt_prepare_inline_crypt_key(prep_key, raw_key, in fscrypt_prepare_key() 160 tfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci->ci_inode); in fscrypt_prepare_key() 184 const u8 *raw_key) in fscrypt_set_per_file_enc_key() argument 187 return fscrypt_prepare_key(&ci->ci_enc_key, raw_key, ci); in fscrypt_set_per_file_enc_key()
|
D | fscrypt_private.h | 408 const u8 *raw_key, size_t raw_key_size, 456 const u8 *raw_key, size_t raw_key_size, in fscrypt_prepare_inline_crypt_key() argument 709 const u8 *raw_key, const struct fscrypt_inode_info *ci); 715 const u8 *raw_key);
|
D | inline_crypt.c | 157 const u8 *raw_key, size_t raw_key_size, in fscrypt_prepare_inline_crypt_key() argument 176 err = blk_crypto_init_key(blk_key, raw_key, raw_key_size, key_type, in fscrypt_prepare_inline_crypt_key()
|