Home
last modified time | relevance | path

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

/Linux-v6.6/fs/crypto/
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()
551 key_spec->u.identifier, in add_master_key()
556 return do_add_master_key(sb, secret, key_spec); in add_master_key()
697 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_add_key()
708 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in fscrypt_ioctl_add_key()
716 err = get_keyring_key(arg.key_id, arg.key_spec.type, &secret); in fscrypt_ioctl_add_key()
729 err = add_master_key(sb, &secret, &arg.key_spec); in fscrypt_ioctl_add_key()
735 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER && in fscrypt_ioctl_add_key()
736 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.h577 struct fscrypt_key_specifier *key_spec);
656 struct fscrypt_key_specifier *key_spec);
/Linux-v6.6/tools/include/uapi/linux/
Dfscrypt.h127 struct fscrypt_key_specifier key_spec; member
136 struct fscrypt_key_specifier key_spec; member
146 struct fscrypt_key_specifier key_spec; member
/Linux-v6.6/include/uapi/linux/
Dfscrypt.h127 struct fscrypt_key_specifier key_spec; member
136 struct fscrypt_key_specifier key_spec; member
146 struct fscrypt_key_specifier key_spec; member
/Linux-v6.6/Documentation/filesystems/
Dfscrypt.rst603 `FS_IOC_ADD_ENCRYPTION_KEY`_. Then, the ``key_spec.u.identifier``
778 struct fscrypt_key_specifier key_spec;
808 ``key_spec.type`` must contain FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR, and
809 ``key_spec.u.descriptor`` must contain the descriptor of the key
816 policies, then ``key_spec.type`` must contain
817 FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER, and ``key_spec.u.identifier`` is
832 the raw key and whose ``type`` field matches ``key_spec.type``.
958 struct fscrypt_key_specifier key_spec;
967 - The key to remove is specified by ``key_spec``:
970 ``key_spec.type`` to FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR and fill
[all …]