Searched refs:key_spec (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/fs/crypto/ |
D | keyring.c | 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() 554 key_spec->u.identifier, in add_master_key() 559 return do_add_master_key(sb, secret, key_spec); in add_master_key() 700 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_add_key() 711 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in fscrypt_ioctl_add_key() 719 err = get_keyring_key(arg.key_id, arg.key_spec.type, &secret); in fscrypt_ioctl_add_key() 732 err = add_master_key(sb, &secret, &arg.key_spec); in fscrypt_ioctl_add_key() 738 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER && in fscrypt_ioctl_add_key() 739 copy_to_user(uarg->key_spec.u.identifier, arg.key_spec.u.identifier, in fscrypt_ioctl_add_key() [all …]
|
D | policy.c | 37 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()
|
D | fscrypt_private.h | 658 struct fscrypt_key_specifier *key_spec);
|
/Linux-v6.1/include/uapi/linux/ |
D | fscrypt.h | 125 struct fscrypt_key_specifier key_spec; member 134 struct fscrypt_key_specifier key_spec; member 144 struct fscrypt_key_specifier key_spec; member
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | fscrypt.h | 125 struct fscrypt_key_specifier key_spec; member 134 struct fscrypt_key_specifier key_spec; member 144 struct fscrypt_key_specifier key_spec; member
|
/Linux-v6.1/Documentation/filesystems/ |
D | fscrypt.rst | 522 `FS_IOC_ADD_ENCRYPTION_KEY`_. Then, the ``key_spec.u.identifier`` 697 struct fscrypt_key_specifier key_spec; 727 ``key_spec.type`` must contain FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR, and 728 ``key_spec.u.descriptor`` must contain the descriptor of the key 735 policies, then ``key_spec.type`` must contain 736 FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER, and ``key_spec.u.identifier`` is 751 the raw key and whose ``type`` field matches ``key_spec.type``. 877 struct fscrypt_key_specifier key_spec; 886 - The key to remove is specified by ``key_spec``: 889 ``key_spec.type`` to FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR and fill [all …]
|