Lines Matching refs:payload
28 #define to_big_key_payload(payload) \ argument
29 (struct big_key_payload *)((payload).data)
59 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_preparse() local
67 BUILD_BUG_ON(sizeof(*payload) != sizeof(prep->payload.data)); in big_key_preparse()
75 payload->length = datalen; in big_key_preparse()
123 payload->data = enckey; in big_key_preparse()
124 payload->path = file->f_path; in big_key_preparse()
125 path_get(&payload->path); in big_key_preparse()
135 payload->data = data; in big_key_preparse()
154 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_free_preparse() local
157 path_put(&payload->path); in big_key_free_preparse()
158 kfree_sensitive(payload->data); in big_key_free_preparse()
167 struct big_key_payload *payload = to_big_key_payload(key->payload); in big_key_revoke() local
171 if (key_is_positive(key) && payload->length > BIG_KEY_FILE_THRESHOLD) in big_key_revoke()
172 vfs_truncate(&payload->path, 0); in big_key_revoke()
180 struct big_key_payload *payload = to_big_key_payload(key->payload); in big_key_destroy() local
182 if (payload->length > BIG_KEY_FILE_THRESHOLD) { in big_key_destroy()
183 path_put(&payload->path); in big_key_destroy()
184 payload->path.mnt = NULL; in big_key_destroy()
185 payload->path.dentry = NULL; in big_key_destroy()
187 kfree_sensitive(payload->data); in big_key_destroy()
188 payload->data = NULL; in big_key_destroy()
213 struct big_key_payload *payload = to_big_key_payload(key->payload); in big_key_describe() local
219 payload->length, in big_key_describe()
220 payload->length > BIG_KEY_FILE_THRESHOLD ? "file" : "buff"); in big_key_describe()
229 struct big_key_payload *payload = to_big_key_payload(key->payload); in big_key_read() local
230 size_t datalen = payload->length; in big_key_read()
238 u8 *buf, *enckey = payload->data; in big_key_read()
246 file = dentry_open(&payload->path, O_RDONLY, current_cred()); in big_key_read()
276 memcpy(buffer, payload->data, datalen); in big_key_read()