Lines Matching refs:prep
56 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()
149 void big_key_free_preparse(struct key_preparsed_payload *prep) in big_key_free_preparse() argument
151 if (prep->datalen > BIG_KEY_FILE_THRESHOLD) { in big_key_free_preparse()
152 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_free_preparse()
156 kfree_sensitive(prep->payload.data[big_key_data]); in big_key_free_preparse()
195 int big_key_update(struct key *key, struct key_preparsed_payload *prep) in big_key_update() argument
199 ret = key_payload_reserve(key, prep->datalen); in big_key_update()
206 return generic_key_instantiate(key, prep); in big_key_update()