Lines Matching refs:mk_spec
253 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()
309 mk_spec->u.identifier, in fscrypt_find_master_key()
328 mk->mk_spec.u.identifier); in allocate_master_key_users_keyring()
349 format_mk_user_description(description, mk->mk_spec.u.identifier); in find_master_key_user()
378 format_mk_user_description(description, mk->mk_spec.u.identifier); in add_master_key_user()
415 const struct fscrypt_key_specifier *mk_spec) in add_new_master_key() argument
427 mk->mk_spec = *mk_spec; in add_new_master_key()
432 if (mk_spec->type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) { in add_new_master_key()
446 fscrypt_mk_hash_bucket(keyring, mk_spec)); in add_new_master_key()
493 const struct fscrypt_key_specifier *mk_spec) in do_add_master_key() argument
501 mk = fscrypt_find_master_key(sb, mk_spec); in do_add_master_key()
506 err = add_new_master_key(sb, secret, mk_spec); in do_add_master_key()
522 err = add_new_master_key(sb, secret, mk_spec); in do_add_master_key()
851 struct fscrypt_key_specifier mk_spec; in fscrypt_verify_key_added() local
856 mk_spec.type = FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER; in fscrypt_verify_key_added()
857 memcpy(mk_spec.u.identifier, identifier, FSCRYPT_KEY_IDENTIFIER_SIZE); in fscrypt_verify_key_added()
859 mk = fscrypt_find_master_key(sb, &mk_spec); in fscrypt_verify_key_added()
963 sb->s_id, busy_count, master_key_spec_type(&mk->mk_spec), in check_for_busy_inodes()
964 master_key_spec_len(&mk->mk_spec), (u8 *)&mk->mk_spec.u, in check_for_busy_inodes()