Home
last modified time | relevance | path

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

/linux-6.6.21/security/keys/encrypted-keys/
Dencrypted.c355 static int get_derived_key(u8 *derived_key, enum derived_key_type key_type, in get_derived_key() argument
378 derived_key); in get_derived_key()
453 const u8 *derived_key, in derived_key_encrypt() argument
466 req = init_skcipher_req(derived_key, derived_keylen); in derived_key_encrypt()
497 u8 derived_key[HASH_SIZE]; in datablob_hmac_append() local
501 ret = get_derived_key(derived_key, AUTH_KEY, master_key, master_keylen); in datablob_hmac_append()
506 ret = calc_hmac(digest, derived_key, sizeof derived_key, in datablob_hmac_append()
511 memzero_explicit(derived_key, sizeof(derived_key)); in datablob_hmac_append()
520 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify() local
526 ret = get_derived_key(derived_key, AUTH_KEY, master_key, master_keylen); in datablob_hmac_verify()
[all …]
/linux-6.6.21/fs/crypto/
Dkeysetup_v1.c49 u8 *derived_key, unsigned int derived_keysize) in derive_key_aes() argument
76 sg_init_one(&dst_sg, derived_key, derived_keysize); in derive_key_aes()
270 u8 *derived_key; in setup_v1_file_key_derived() local
277 derived_key = kmalloc(ci->ci_mode->keysize, GFP_KERNEL); in setup_v1_file_key_derived()
278 if (!derived_key) in setup_v1_file_key_derived()
282 derived_key, ci->ci_mode->keysize); in setup_v1_file_key_derived()
286 err = fscrypt_set_per_file_enc_key(ci, derived_key); in setup_v1_file_key_derived()
288 kfree_sensitive(derived_key); in setup_v1_file_key_derived()
Dkeysetup.c364 u8 derived_key[FSCRYPT_MAX_KEY_SIZE]; in fscrypt_setup_v2_file_key() local
369 derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key()
373 err = fscrypt_set_per_file_enc_key(ci, derived_key); in fscrypt_setup_v2_file_key()
374 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key()
/linux-6.6.21/drivers/virt/coco/sev-guest/
Dsev-guest.c62 struct snp_derived_key_req derived_key; member
519 struct snp_derived_key_req *req = &snp_dev->req.derived_key; in get_derived_key()