Lines Matching full:prep
57 int big_key_preparse(struct key_preparsed_payload *prep) in big_key_preparse() argument
59 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_preparse()
63 size_t datalen = prep->datalen; in big_key_preparse()
67 BUILD_BUG_ON(sizeof(*payload) != sizeof(prep->payload.data)); in big_key_preparse()
69 if (datalen <= 0 || datalen > 1024 * 1024 || !prep->data) in big_key_preparse()
73 prep->quotalen = 16; in big_key_preparse()
102 chacha20poly1305_encrypt(buf, prep->data, datalen, NULL, 0, in big_key_preparse()
136 memcpy(data, prep->data, prep->datalen); in big_key_preparse()
152 void big_key_free_preparse(struct key_preparsed_payload *prep) in big_key_free_preparse() argument
154 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_free_preparse()
156 if (prep->datalen > BIG_KEY_FILE_THRESHOLD) in big_key_free_preparse()
194 int big_key_update(struct key *key, struct key_preparsed_payload *prep) in big_key_update() argument
198 ret = key_payload_reserve(key, prep->datalen); in big_key_update()
205 return generic_key_instantiate(key, prep); in big_key_update()