Home
last modified time | relevance | path

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

/linux/fs/crypto/
H A Dkeyring.c532 struct fscrypt_key_specifier *key_spec) in add_master_key() argument
536 if (key_spec->type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) { in add_master_key()
574 key_spec->u.identifier, in add_master_key()
577 return do_add_master_key(sb, secret, key_spec); in add_master_key()
739 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_add_key()
750 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in fscrypt_ioctl_add_key()
759 if (arg.key_spec.type != FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) in fscrypt_ioctl_add_key()
767 err = get_keyring_key(arg.key_id, arg.key_spec.type, arg.flags, in fscrypt_ioctl_add_key()
780 err = add_master_key(sb, &secret, &arg.key_spec); in fscrypt_ioctl_add_key()
786 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER && in fscrypt_ioctl_add_key()
[all …]
H A Dpolicy.c39 struct fscrypt_key_specifier *key_spec) in fscrypt_policy_to_key_spec() argument
43 key_spec->type = FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR; in fscrypt_policy_to_key_spec()
44 memcpy(key_spec->u.descriptor, policy->v1.master_key_descriptor, in fscrypt_policy_to_key_spec()
48 key_spec->type = FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER; in fscrypt_policy_to_key_spec()
49 memcpy(key_spec->u.identifier, policy->v2.master_key_identifier, in fscrypt_policy_to_key_spec()
H A Dfscrypt_private.h693 struct fscrypt_key_specifier *key_spec);
774 struct fscrypt_key_specifier *key_spec);
/linux/tools/include/uapi/linux/
H A Dfscrypt.h127 struct fscrypt_key_specifier key_spec;
138 struct fscrypt_key_specifier key_spec;
148 struct fscrypt_key_specifier key_spec;
128 struct fscrypt_key_specifier key_spec; global() member
139 struct fscrypt_key_specifier key_spec; global() member
149 struct fscrypt_key_specifier key_spec; global() member
/linux/Documentation/filesystems/
H A Dfscrypt.rst679 `FS_IOC_ADD_ENCRYPTION_KEY`_. Then, the ``key_spec.u.identifier``
843 struct fscrypt_key_specifier key_spec;
875 ``key_spec.type`` must contain FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR, and
876 ``key_spec.u.descriptor`` must contain the descriptor of the key
887 policies, then ``key_spec.type`` must contain
888 FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER, and ``key_spec.u.identifier`` is
903 key, whose ``type`` field matches ``key_spec.type``, and whose
1039 struct fscrypt_key_specifier key_spec;
1048 - The key to remove is specified by ``key_spec``:
1051 ``key_spec.type`` to FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR and fill
[all …]