Home
last modified time | relevance | path

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

/security/keys/
Dkey.c408 struct key_preparsed_payload *prep, in __key_instantiate_and_link() argument
426 ret = key->type->instantiate(key, prep); in __key_instantiate_and_link()
477 struct key_preparsed_payload prep; in key_instantiate_and_link() local
481 memset(&prep, 0, sizeof(prep)); in key_instantiate_and_link()
482 prep.data = data; in key_instantiate_and_link()
483 prep.datalen = datalen; in key_instantiate_and_link()
484 prep.quotalen = key->type->def_datalen; in key_instantiate_and_link()
486 ret = key->type->preparse(&prep); in key_instantiate_and_link()
498 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, in key_instantiate_and_link()
506 key->type->free_preparse(&prep); in key_instantiate_and_link()
[all …]
Duser_defined.c61 int user_instantiate(struct key *key, struct key_preparsed_payload *prep) in user_instantiate() argument
64 size_t datalen = prep->datalen; in user_instantiate()
68 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_instantiate()
82 memcpy(upayload->data, prep->data, datalen); in user_instantiate()
96 int user_update(struct key *key, struct key_preparsed_payload *prep) in user_update() argument
99 size_t datalen = prep->datalen; in user_update()
103 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_update()
113 memcpy(upayload->data, prep->data, datalen); in user_update()
Dtrusted.c899 struct key_preparsed_payload *prep) in trusted_instantiate() argument
903 size_t datalen = prep->datalen; in trusted_instantiate()
909 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_instantiate()
915 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
985 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument
990 size_t datalen = prep->datalen; in trusted_update()
996 if (datalen <= 0 || datalen > 32767 || !prep->data) in trusted_update()
1013 memcpy(datablob, prep->data, datalen); in trusted_update()
Drequest_key_auth.c46 struct key_preparsed_payload *prep) in request_key_auth_instantiate() argument
48 key->payload.data = (struct request_key_auth *)prep->data; in request_key_auth_instantiate()
Dkeyring.c69 struct key_preparsed_payload *prep);
124 struct key_preparsed_payload *prep) in keyring_instantiate() argument
129 if (prep->datalen == 0) { in keyring_instantiate()
/security/keys/encrypted-keys/
Dencrypted.c777 struct key_preparsed_payload *prep) in encrypted_instantiate() argument
785 size_t datalen = prep->datalen; in encrypted_instantiate()
788 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_instantiate()
795 memcpy(datablob, prep->data, datalen); in encrypted_instantiate()
838 static int encrypted_update(struct key *key, struct key_preparsed_payload *prep) in encrypted_update() argument
845 size_t datalen = prep->datalen; in encrypted_update()
848 if (datalen <= 0 || datalen > 32767 || !prep->data) in encrypted_update()
856 memcpy(buf, prep->data, datalen); in encrypted_update()