Home
last modified time | relevance | path

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

/fs/crypto/
Dkeysetup.c199 if (mk->mk_secret.is_hw_wrapped && S_ISREG(inode->i_mode)) { in setup_per_mode_enc_key()
216 err = fscrypt_prepare_key(prep_key, mk->mk_secret.raw, in setup_per_mode_enc_key()
217 mk->mk_secret.size, true, ci); in setup_per_mode_enc_key()
230 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, in setup_per_mode_enc_key()
263 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, context, info, infolen, in fscrypt_derive_siphash_key()
345 if (mk->mk_secret.is_hw_wrapped && in fscrypt_setup_v2_file_key()
381 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, in fscrypt_setup_v2_file_key()
431 if (mk->mk_secret.size < min_keysize) { in fscrypt_valid_master_key_size()
437 mk->mk_secret.size, min_keysize); in fscrypt_valid_master_key_size()
498 if (!is_master_key_secret_present(&mk->mk_secret)) { in setup_file_encryption_key()
[all …]
Dkeyring.c104 WARN_ON(is_master_key_secret_present(&mk->mk_secret)); in fscrypt_put_master_key_activeref()
241 WARN_ON(!is_master_key_secret_present(&mk->mk_secret)); in fscrypt_destroy_keyring()
242 wipe_master_key_secret(&mk->mk_secret); in fscrypt_destroy_keyring()
441 move_master_key_secret(&mk->mk_secret, secret); in add_new_master_key()
482 if (!is_master_key_secret_present(&mk->mk_secret)) { in add_existing_master_key()
485 move_master_key_secret(&mk->mk_secret, secret); in add_existing_master_key()
1056 if (is_master_key_secret_present(&mk->mk_secret)) { in do_remove_key()
1057 wipe_master_key_secret(&mk->mk_secret); in do_remove_key()
1151 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.h520 struct fscrypt_master_key_secret mk_secret; member