Lines Matching refs:key_spec
555 struct fscrypt_key_specifier *key_spec) in add_master_key() argument
559 if (key_spec->type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) { in add_master_key()
574 key_spec->u.identifier, in add_master_key()
579 return do_add_master_key(sb, secret, key_spec); in add_master_key()
720 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_add_key()
731 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in fscrypt_ioctl_add_key()
739 err = get_keyring_key(arg.key_id, arg.key_spec.type, &secret); in fscrypt_ioctl_add_key()
752 err = add_master_key(sb, &secret, &arg.key_spec); in fscrypt_ioctl_add_key()
758 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER && in fscrypt_ioctl_add_key()
759 copy_to_user(uarg->key_spec.u.identifier, arg.key_spec.u.identifier, in fscrypt_ioctl_add_key()
813 struct fscrypt_key_specifier *key_spec) in fscrypt_add_test_dummy_key() argument
819 err = add_master_key(sb, &secret, key_spec); in fscrypt_add_test_dummy_key()
1034 if (!valid_key_spec(&arg.key_spec)) in do_remove_key()
1044 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in do_remove_key()
1049 mk = fscrypt_find_master_key(sb, &arg.key_spec); in do_remove_key()
1155 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_get_key_status()
1165 mk = fscrypt_find_master_key(sb, &arg.key_spec); in fscrypt_ioctl_get_key_status()