Home
last modified time | relevance | path

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

/linux-6.1.9/fs/crypto/
Dkeysetup.c210 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, in setup_per_mode_enc_key()
241 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, context, info, infolen, in fscrypt_derive_siphash_key()
351 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, in fscrypt_setup_v2_file_key()
401 if (mk->mk_secret.size < min_keysize) { in fscrypt_valid_master_key_size()
407 mk->mk_secret.size, min_keysize); in fscrypt_valid_master_key_size()
454 if (!is_master_key_secret_present(&mk->mk_secret)) { in setup_file_encryption_key()
466 err = fscrypt_setup_v1_file_key(ci, mk->mk_secret.raw); in setup_file_encryption_key()
770 return !is_master_key_secret_present(&ci->ci_master_key->mk_secret); in fscrypt_drop_inode()
Dkeyring.c104 WARN_ON(is_master_key_secret_present(&mk->mk_secret)); in fscrypt_put_master_key_activeref()
244 WARN_ON(!is_master_key_secret_present(&mk->mk_secret)); in fscrypt_destroy_keyring()
245 wipe_master_key_secret(&mk->mk_secret); in fscrypt_destroy_keyring()
444 move_master_key_secret(&mk->mk_secret, secret); in add_new_master_key()
485 if (!is_master_key_secret_present(&mk->mk_secret)) { in add_existing_master_key()
488 move_master_key_secret(&mk->mk_secret, secret); in add_existing_master_key()
1069 if (is_master_key_secret_present(&mk->mk_secret)) { in do_remove_key()
1070 wipe_master_key_secret(&mk->mk_secret); in do_remove_key()
1164 if (!is_master_key_secret_present(&mk->mk_secret)) { in fscrypt_ioctl_get_key_status()
Dhooks.c160 if (is_master_key_secret_present(&mk->mk_secret)) in fscrypt_prepare_setflags()
Dfscrypt_private.h488 struct fscrypt_master_key_secret mk_secret; member