Home
last modified time | relevance | path

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

/security/keys/
Dkey.c424 struct key_preparsed_payload *prep, in __key_instantiate_and_link() argument
442 ret = key->type->instantiate(key, prep); in __key_instantiate_and_link()
464 if (prep->expiry != TIME_T_MAX) { in __key_instantiate_and_link()
465 key->expiry = prep->expiry; in __key_instantiate_and_link()
466 key_schedule_gc(prep->expiry + key_gc_delay); 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.data = data; in key_instantiate_and_link()
508 prep.datalen = datalen; in key_instantiate_and_link()
509 prep.quotalen = key->type->def_datalen; in key_instantiate_and_link()
[all …]
Duser_defined.c63 int user_preparse(struct key_preparsed_payload *prep) in user_preparse() argument
66 size_t datalen = prep->datalen; in user_preparse()
68 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_preparse()
76 prep->quotalen = datalen; in user_preparse()
77 prep->payload.data[0] = upayload; in user_preparse()
79 memcpy(upayload->data, prep->data, datalen); in user_preparse()
87 void user_free_preparse(struct key_preparsed_payload *prep) in user_free_preparse() argument
89 kzfree(prep->payload.data[0]); in user_free_preparse()
105 int user_update(struct key *key, struct key_preparsed_payload *prep) in user_update() argument
111 ret = key_payload_reserve(key, prep->datalen); in user_update()
[all …]
Dbig_key.c135 int big_key_preparse(struct key_preparsed_payload *prep) in big_key_preparse() argument
137 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_preparse()
142 size_t datalen = prep->datalen; in big_key_preparse()
146 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse()
150 prep->quotalen = 16; in big_key_preparse()
152 prep->payload.data[big_key_len] = (void *)(unsigned long)datalen; in big_key_preparse()
166 memcpy(data, prep->data, 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()
214 memcpy(data, prep->data, prep->datalen); in big_key_preparse()
[all …]
Drequest_key_auth.c47 static int request_key_auth_preparse(struct key_preparsed_payload *prep) in request_key_auth_preparse() argument
52 static void request_key_auth_free_preparse(struct key_preparsed_payload *prep) in request_key_auth_free_preparse() argument
60 struct key_preparsed_payload *prep) in request_key_auth_instantiate() argument
62 key->payload.data[0] = (struct request_key_auth *)prep->data; in request_key_auth_instantiate()
Dtrusted.c959 struct key_preparsed_payload *prep) in trusted_instantiate() argument
963 size_t datalen = prep->datalen; in trusted_instantiate()
974 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate()
980 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
1060 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument
1065 size_t datalen = prep->datalen; in trusted_update()
1074 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update()
1091 memcpy(datablob, prep->data, datalen); in trusted_update()
Dkeyring.c76 static int keyring_preparse(struct key_preparsed_payload *prep);
77 static void keyring_free_preparse(struct key_preparsed_payload *prep);
79 struct key_preparsed_payload *prep);
131 static int keyring_preparse(struct key_preparsed_payload *prep) in keyring_preparse() argument
133 return prep->datalen != 0 ? -EINVAL : 0; in keyring_preparse()
139 static void keyring_free_preparse(struct key_preparsed_payload *prep) in keyring_free_preparse() argument
149 struct key_preparsed_payload *prep) in keyring_instantiate() argument
/security/keys/encrypted-keys/
Dencrypted.c787 struct key_preparsed_payload *prep) in encrypted_instantiate() argument
795 size_t datalen = prep->datalen; in encrypted_instantiate()
798 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_instantiate()
805 memcpy(datablob, prep->data, datalen); in encrypted_instantiate()
847 static int encrypted_update(struct key *key, struct key_preparsed_payload *prep) in encrypted_update() argument
854 size_t datalen = prep->datalen; in encrypted_update()
859 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_update()
867 memcpy(buf, prep->data, datalen); in encrypted_update()