Searched refs:key_spec (Results 1 – 3 of 3) sorted by relevance
/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() 565 key_spec->u.identifier, in add_master_key() 570 return do_add_master_key(sb, secret, key_spec); in add_master_key() 713 if (!valid_key_spec(&arg.key_spec)) in fscrypt_ioctl_add_key() 724 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR && in fscrypt_ioctl_add_key() 733 if (arg.key_spec.type != FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER) in fscrypt_ioctl_add_key() 741 err = get_keyring_key(arg.key_id, arg.key_spec.type, &secret); in fscrypt_ioctl_add_key() 759 err = add_master_key(sb, &secret, &arg.key_spec); in fscrypt_ioctl_add_key() 765 if (arg.key_spec.type == FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER && in fscrypt_ioctl_add_key() [all …]
|
D | policy.c | 722 struct fscrypt_key_specifier key_spec = { 0 }; in fscrypt_set_test_dummy_encryption() local 732 key_spec.type = FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR; in fscrypt_set_test_dummy_encryption() 733 memset(key_spec.u.descriptor, 0x42, in fscrypt_set_test_dummy_encryption() 737 key_spec.type = FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER; in fscrypt_set_test_dummy_encryption() 750 err = fscrypt_add_test_dummy_key(sb, &key_spec); in fscrypt_set_test_dummy_encryption() 759 memcpy(policy->v1.master_key_descriptor, key_spec.u.descriptor, in fscrypt_set_test_dummy_encryption() 765 memcpy(policy->v2.master_key_identifier, key_spec.u.identifier, in fscrypt_set_test_dummy_encryption()
|
D | fscrypt_private.h | 611 struct fscrypt_key_specifier *key_spec);
|