Home
last modified time | relevance | path

Searched refs:mk_spec (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/fs/crypto/
Dkeyring.c253 const struct fscrypt_key_specifier *mk_spec) in fscrypt_mk_hash_bucket() argument
260 unsigned long i = get_unaligned((unsigned long *)&mk_spec->u); in fscrypt_mk_hash_bucket()
274 const struct fscrypt_key_specifier *mk_spec) in fscrypt_find_master_key() argument
290 bucket = fscrypt_mk_hash_bucket(keyring, mk_spec); in fscrypt_find_master_key()
292 switch (mk_spec->type) { in fscrypt_find_master_key()
295 if (mk->mk_spec.type == in fscrypt_find_master_key()
297 memcmp(mk->mk_spec.u.descriptor, in fscrypt_find_master_key()
298 mk_spec->u.descriptor, in fscrypt_find_master_key()
306 if (mk->mk_spec.type == in fscrypt_find_master_key()
308 memcmp(mk->mk_spec.u.identifier, in fscrypt_find_master_key()
[all …]
Dkeysetup.c419 master_key_spec_type(&mk->mk_spec), in fscrypt_valid_master_key_size()
420 master_key_spec_len(&mk->mk_spec), in fscrypt_valid_master_key_size()
421 (u8 *)&mk->mk_spec.u, in fscrypt_valid_master_key_size()
442 struct fscrypt_key_specifier mk_spec; in setup_file_encryption_key() local
450 err = fscrypt_policy_to_key_spec(&ci->ci_policy, &mk_spec); in setup_file_encryption_key()
454 mk = fscrypt_find_master_key(sb, &mk_spec); in setup_file_encryption_key()
467 err = fscrypt_add_test_dummy_key(sb, &mk_spec); in setup_file_encryption_key()
470 mk = fscrypt_find_master_key(sb, &mk_spec); in setup_file_encryption_key()
Dfscrypt_private.h490 struct fscrypt_key_specifier mk_spec; member
571 const struct fscrypt_key_specifier *mk_spec);