Home
last modified time | relevance | path

Searched refs:key_spec (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/crypto/
Dkeyring.c555 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()
[all …]
Dpolicy.c37 struct fscrypt_key_specifier *key_spec) in fscrypt_policy_to_key_spec() argument
41 key_spec->type = FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR; in fscrypt_policy_to_key_spec()
42 memcpy(key_spec->u.descriptor, policy->v1.master_key_descriptor, in fscrypt_policy_to_key_spec()
46 key_spec->type = FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER; in fscrypt_policy_to_key_spec()
47 memcpy(key_spec->u.identifier, policy->v2.master_key_identifier, in fscrypt_policy_to_key_spec()
Dfscrypt_private.h631 struct fscrypt_key_specifier *key_spec);
712 struct fscrypt_key_specifier *key_spec);
/linux-6.12.1/tools/include/uapi/linux/
Dfscrypt.h128 struct fscrypt_key_specifier key_spec; member
137 struct fscrypt_key_specifier key_spec; member
147 struct fscrypt_key_specifier key_spec; member
/linux-6.12.1/include/uapi/linux/
Dfscrypt.h128 struct fscrypt_key_specifier key_spec; member
137 struct fscrypt_key_specifier key_spec; member
147 struct fscrypt_key_specifier key_spec; member
/linux-6.12.1/Documentation/filesystems/
Dfscrypt.rst661 `FS_IOC_ADD_ENCRYPTION_KEY`_. Then, the ``key_spec.u.identifier``
836 struct fscrypt_key_specifier key_spec;
866 ``key_spec.type`` must contain FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR, and
867 ``key_spec.u.descriptor`` must contain the descriptor of the key
874 policies, then ``key_spec.type`` must contain
875 FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER, and ``key_spec.u.identifier`` is
890 the raw key and whose ``type`` field matches ``key_spec.type``.
1016 struct fscrypt_key_specifier key_spec;
1025 - The key to remove is specified by ``key_spec``:
1028 ``key_spec.type`` to FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR and fill
[all …]