Home
last modified time | relevance | path

Searched refs:prep (Results 1 – 7 of 7) sorted by relevance

/security/keys/
Dbig_key.c56 int big_key_preparse(struct key_preparsed_payload *prep) in big_key_preparse() argument
58 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_preparse()
62 size_t datalen = prep->datalen; in big_key_preparse()
66 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse()
70 prep->quotalen = 16; in big_key_preparse()
72 prep->payload.data[big_key_len] = (void *)(unsigned long)datalen; in big_key_preparse()
99 chacha20poly1305_encrypt(buf, prep->data, datalen, NULL, 0, in big_key_preparse()
120 prep->payload.data[big_key_data] = enckey; in big_key_preparse()
132 prep->payload.data[big_key_data] = data; in big_key_preparse()
133 memcpy(data, prep->data, prep->datalen); in big_key_preparse()
[all …]
Duser_defined.c59 int user_preparse(struct key_preparsed_payload *prep) in user_preparse() argument
62 size_t datalen = prep->datalen; in user_preparse()
64 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_preparse()
72 prep->quotalen = datalen; in user_preparse()
73 prep->payload.data[0] = upayload; in user_preparse()
75 memcpy(upayload->data, prep->data, datalen); in user_preparse()
83 void user_free_preparse(struct key_preparsed_payload *prep) in user_free_preparse() argument
85 kfree_sensitive(prep->payload.data[0]); in user_free_preparse()
101 int user_update(struct key *key, struct key_preparsed_payload *prep) in user_update() argument
107 ret = key_payload_reserve(key, prep->datalen); in user_update()
[all …]
Dkey.c426 struct key_preparsed_payload *prep, in __key_instantiate_and_link() argument
444 ret = key->type->instantiate(key, prep); in __key_instantiate_and_link()
467 key_set_expiry(key, prep->expiry); in __key_instantiate_and_link()
502 struct key_preparsed_payload prep; in key_instantiate_and_link() local
506 memset(&prep, 0, sizeof(prep)); in key_instantiate_and_link()
507 prep.orig_description = key->description; in key_instantiate_and_link()
508 prep.data = data; in key_instantiate_and_link()
509 prep.datalen = datalen; in key_instantiate_and_link()
510 prep.quotalen = key->type->def_datalen; in key_instantiate_and_link()
511 prep.expiry = TIME64_MAX; in key_instantiate_and_link()
[all …]
Drequest_key_auth.c42 static int request_key_auth_preparse(struct key_preparsed_payload *prep) in request_key_auth_preparse() argument
47 static void request_key_auth_free_preparse(struct key_preparsed_payload *prep) in request_key_auth_free_preparse() argument
55 struct key_preparsed_payload *prep) in request_key_auth_instantiate() argument
57 rcu_assign_keypointer(key, (struct request_key_auth *)prep->data); in request_key_auth_instantiate()
Dkeyring.c74 static int keyring_preparse(struct key_preparsed_payload *prep);
75 static void keyring_free_preparse(struct key_preparsed_payload *prep);
77 struct key_preparsed_payload *prep);
123 static int keyring_preparse(struct key_preparsed_payload *prep) in keyring_preparse() argument
125 return prep->datalen != 0 ? -EINVAL : 0; in keyring_preparse()
131 static void keyring_free_preparse(struct key_preparsed_payload *prep) in keyring_free_preparse() argument
141 struct key_preparsed_payload *prep) in keyring_instantiate() argument
/security/keys/trusted-keys/
Dtrusted_core.c143 struct key_preparsed_payload *prep) in trusted_instantiate() argument
146 size_t datalen = prep->datalen; in trusted_instantiate()
152 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate()
158 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
222 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument
226 size_t datalen = prep->datalen; in trusted_update()
235 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update()
248 memcpy(datablob, prep->data, datalen); in trusted_update()
/security/keys/encrypted-keys/
Dencrypted.c782 struct key_preparsed_payload *prep) in encrypted_instantiate() argument
790 size_t datalen = prep->datalen; in encrypted_instantiate()
793 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_instantiate()
800 memcpy(datablob, prep->data, datalen); in encrypted_instantiate()
842 static int encrypted_update(struct key *key, struct key_preparsed_payload *prep) in encrypted_update() argument
849 size_t datalen = prep->datalen; in encrypted_update()
854 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_update()
862 memcpy(buf, prep->data, datalen); in encrypted_update()