Lines Matching refs:datablob
65 static int datablob_parse(char **datablob, struct trusted_key_payload *p) in datablob_parse() argument
74 c = strsep(datablob, " \t"); in datablob_parse()
81 c = strsep(datablob, " \t"); in datablob_parse()
92 c = strsep(datablob, " \t"); in datablob_parse()
143 char *datablob, *orig_datablob; in trusted_instantiate() local
151 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_instantiate()
152 if (!datablob) in trusted_instantiate()
154 memcpy(datablob, prep->data, datalen); in trusted_instantiate()
155 datablob[datalen] = '\0'; in trusted_instantiate()
163 key_cmd = datablob_parse(&datablob, payload); in trusted_instantiate()
173 ret = static_call(trusted_key_unseal)(payload, datablob); in trusted_instantiate()
191 ret = static_call(trusted_key_seal)(payload, datablob); in trusted_instantiate()
223 char *datablob, *orig_datablob; in trusted_update() local
234 orig_datablob = datablob = kmalloc(datalen + 1, GFP_KERNEL); in trusted_update()
235 if (!datablob) in trusted_update()
244 memcpy(datablob, prep->data, datalen); in trusted_update()
245 datablob[datalen] = '\0'; in trusted_update()
246 ret = datablob_parse(&datablob, new_p); in trusted_update()
260 ret = static_call(trusted_key_seal)(new_p, datablob); in trusted_update()