Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 14 of 14) sorted by relevance

/security/keys/
Dbig_key.c137 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_preparse()
152 prep->payload.data[big_key_len] = (void *)(unsigned long)datalen; in big_key_preparse()
201 prep->payload.data[big_key_data] = enckey; in big_key_preparse()
213 prep->payload.data[big_key_data] = data; in big_key_preparse()
233 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_free_preparse()
237 kzfree(prep->payload.data[big_key_data]); in big_key_free_preparse()
246 struct path *path = (struct path *)&key->payload.data[big_key_path]; in big_key_revoke()
251 (size_t)key->payload.data[big_key_len] > BIG_KEY_FILE_THRESHOLD) in big_key_revoke()
260 size_t datalen = (size_t)key->payload.data[big_key_len]; in big_key_destroy()
263 struct path *path = (struct path *)&key->payload.data[big_key_path]; in big_key_destroy()
[all …]
Duser_defined.c77 prep->payload.data[0] = upayload; in user_preparse()
89 kzfree(prep->payload.data[0]); in user_free_preparse()
95 struct user_key_payload *payload; in user_free_payload_rcu() local
97 payload = container_of(head, struct user_key_payload, rcu); in user_free_payload_rcu()
98 kzfree(payload); in user_free_payload_rcu()
119 rcu_assign_keypointer(key, prep->payload.data[0]); in user_update()
120 prep->payload.data[0] = NULL; in user_update()
152 struct user_key_payload *upayload = key->payload.data[0]; in user_destroy()
Dkeyctl.c71 void *payload; in SYSCALL_DEFINE5() local
101 payload = NULL; in SYSCALL_DEFINE5()
105 payload = kvmalloc(plen, GFP_KERNEL); in SYSCALL_DEFINE5()
106 if (!payload) in SYSCALL_DEFINE5()
110 if (copy_from_user(payload, _payload, plen) != 0) in SYSCALL_DEFINE5()
124 payload, plen, KEY_PERM_UNDEF, in SYSCALL_DEFINE5()
136 if (payload) { in SYSCALL_DEFINE5()
137 memzero_explicit(payload, plen); in SYSCALL_DEFINE5()
138 kvfree(payload); in SYSCALL_DEFINE5()
322 void *payload; in keyctl_update_key() local
[all …]
Dkey.c525 ret = keyres->check(keyring, key->type, &prep.payload, in key_instantiate_and_link()
809 const void *payload, in key_create_or_update() argument
851 prep.data = payload; in key_create_or_update()
877 &prep.payload, restrict_link->key); in key_create_or_update()
977 int key_update(key_ref_t key_ref, const void *payload, size_t plen) in key_update() argument
995 prep.data = payload; in key_update()
1099 rcu_assign_keypointer(key, prep->payload.data[0]); in generic_key_instantiate()
1100 key->payload.data[1] = prep->payload.data[1]; in generic_key_instantiate()
1101 key->payload.data[2] = prep->payload.data[2]; in generic_key_instantiate()
1102 key->payload.data[3] = prep->payload.data[3]; in generic_key_instantiate()
[all …]
Dtrusted.c961 struct trusted_key_payload *payload = NULL; in trusted_instantiate() local
988 payload = trusted_payload_alloc(key); in trusted_instantiate()
989 if (!payload) { in trusted_instantiate()
994 key_cmd = datablob_parse(datablob, payload, options); in trusted_instantiate()
1005 dump_payload(payload); in trusted_instantiate()
1011 ret = tpm_unseal_trusted(TPM_ANY_NUM, payload, options); in trusted_instantiate()
1013 ret = key_unseal(payload, options); in trusted_instantiate()
1014 dump_payload(payload); in trusted_instantiate()
1020 key_len = payload->key_len; in trusted_instantiate()
1021 ret = tpm_get_random(TPM_ANY_NUM, payload->key, key_len); in trusted_instantiate()
[all …]
Ddh.c41 const struct user_key_payload *payload; in dh_data_from_key() local
44 payload = user_key_payload_locked(key); in dh_data_from_key()
46 duplicate = kmemdup(payload->data, payload->datalen, in dh_data_from_key()
50 ret = payload->datalen; in dh_data_from_key()
Drequest_key_auth.c62 key->payload.data[0] = (struct request_key_auth *)prep->data; in request_key_auth_instantiate()
194 irka = cred->request_key_auth->payload.data[0]; in request_key_auth_new()
Dgc.c366 memset(&key->payload, KEY_DESTROY, sizeof(key->payload)); in key_garbage_collector()
Dprocess_keys.c478 rka = ctx->cred->request_key_auth->payload.data[0]; in search_process_keyrings()
668 rka = ctx.cred->request_key_auth->payload.data[0]; in lookup_user_key()
DKconfig45 bool "Large payload keys"
Dkeyring.c533 const union key_payload *payload, in restrict_link_reject() argument
1337 return keyring->restrict_link->check(keyring, key->type, &key->payload, in __key_link_check_restriction()
/security/keys/encrypted-keys/
Dmasterkey_trusted.c42 tpayload = tkey->payload.data[0]; in request_trusted_key()
Dencrypted.c849 struct encrypted_key_payload *epayload = key->payload.data[0]; in encrypted_update()
970 kzfree(key->payload.data[0]); in encrypted_destroy()
/security/integrity/evm/
Devm_crypto.c360 ekp = evm_key->payload.data[0]; in evm_init_key()