Lines Matching refs:key_spec
535 struct fscrypt_key_specifier *key_spec) in add_master_key() argument
539 if (key_spec->type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) { in add_master_key()
565 key_spec->u.identifier, in add_master_key()
570 return do_add_master_key(sb, secret, key_spec); in add_master_key()
713 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_add_key()
724 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in fscrypt_ioctl_add_key()
733 if (arg.key_spec.type != FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) in fscrypt_ioctl_add_key()
741 err = get_keyring_key(arg.key_id, arg.key_spec.type, &secret); in fscrypt_ioctl_add_key()
759 err = add_master_key(sb, &secret, &arg.key_spec); in fscrypt_ioctl_add_key()
765 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER && in fscrypt_ioctl_add_key()
766 copy_to_user(uarg->key_spec.u.identifier, arg.key_spec.u.identifier, in fscrypt_ioctl_add_key()
782 struct fscrypt_key_specifier *key_spec) in fscrypt_add_test_dummy_key() argument
794 err = add_master_key(sb, &secret, key_spec); in fscrypt_add_test_dummy_key()
1010 if (!valid_key_spec(&arg.key_spec)) in do_remove_key()
1020 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in do_remove_key()
1025 mk = fscrypt_find_master_key(sb, &arg.key_spec); in do_remove_key()
1133 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_get_key_status()
1143 mk = fscrypt_find_master_key(sb, &arg.key_spec); in fscrypt_ioctl_get_key_status()