Searched refs:key_spec (Results 1 – 6 of 6) sorted by relevance
| /linux/fs/crypto/ |
| H A D | keyring.c | 556 struct fscrypt_key_specifier *key_spec) in add_master_key() argument 560 if (key_spec->type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) { in add_master_key() 598 key_spec->u.identifier, in add_master_key() 601 return do_add_master_key(sb, secret, key_spec); in add_master_key() 763 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_add_key() 774 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in fscrypt_ioctl_add_key() 783 if (arg.key_spec.type != FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) in fscrypt_ioctl_add_key() 791 err = get_keyring_key(arg.key_id, arg.key_spec.type, arg.flags, in fscrypt_ioctl_add_key() 804 err = add_master_key(sb, &secret, &arg.key_spec); in fscrypt_ioctl_add_key() 810 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER && in fscrypt_ioctl_add_key() [all …]
|
| H A D | policy.c | 39 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 D | fscrypt_private.h | 697 struct fscrypt_key_specifier *key_spec); 778 struct fscrypt_key_specifier *key_spec);
|
| /linux/tools/include/uapi/linux/ |
| H A D | fscrypt.h | 128 struct fscrypt_key_specifier key_spec; member 139 struct fscrypt_key_specifier key_spec; member 149 struct fscrypt_key_specifier key_spec; member
|
| /linux/include/uapi/linux/ |
| H A D | fscrypt.h | 128 struct fscrypt_key_specifier key_spec; member 139 struct fscrypt_key_specifier key_spec; member 149 struct fscrypt_key_specifier key_spec; member
|
| /linux/Documentation/filesystems/ |
| H A D | fscrypt.rst | 673 `FS_IOC_ADD_ENCRYPTION_KEY`_. Then, the ``key_spec.u.identifier`` 848 struct fscrypt_key_specifier key_spec; 880 ``key_spec.type`` must contain FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR, and 881 ``key_spec.u.descriptor`` must contain the descriptor of the key 888 policies, then ``key_spec.type`` must contain 889 FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER, and ``key_spec.u.identifier`` is 904 key, whose ``type`` field matches ``key_spec.type``, and whose 1040 struct fscrypt_key_specifier key_spec; 1049 - The key to remove is specified by ``key_spec``: 1052 ``key_spec.type`` to FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR and fill [all …]
|