Lines Matching refs:pkcs11_ref

72 		struct pkcs11_attribute_head pkcs11_ref = { };  in _remove_attribute()  local
74 TEE_MemMove(&pkcs11_ref, cur, sizeof(pkcs11_ref)); in _remove_attribute()
75 next_off = sizeof(pkcs11_ref) + pkcs11_ref.size; in _remove_attribute()
77 if (pkcs11_ref.id != attribute) in _remove_attribute()
80 if (empty && pkcs11_ref.size) in _remove_attribute()
116 struct pkcs11_attribute_head pkcs11_ref = { }; in get_attribute_ptrs() local
118 TEE_MemMove(&pkcs11_ref, cur, sizeof(pkcs11_ref)); in get_attribute_ptrs()
119 next_off = sizeof(pkcs11_ref) + pkcs11_ref.size; in get_attribute_ptrs()
121 if (pkcs11_ref.id != attribute) in get_attribute_ptrs()
130 if (pkcs11_ref.size) in get_attribute_ptrs()
131 *attr_ptr++ = cur + sizeof(pkcs11_ref); in get_attribute_ptrs()
137 *attr_size_ptr++ = pkcs11_ref.size; in get_attribute_ptrs()
260 struct pkcs11_attribute_head pkcs11_ref = { }; in attributes_match_reference() local
264 TEE_MemMove(&pkcs11_ref, ref_attr, sizeof(pkcs11_ref)); in attributes_match_reference()
267 if (attribute_is_hidden(&pkcs11_ref)) in attributes_match_reference()
270 rc = get_attribute_ptr(candidate, pkcs11_ref.id, &value, &size); in attributes_match_reference()
272 if (rc || !value || size != pkcs11_ref.size || in attributes_match_reference()
273 TEE_MemCompare(ref_attr + sizeof(pkcs11_ref), value, size)) in attributes_match_reference()
276 ref_attr += sizeof(pkcs11_ref) + pkcs11_ref.size; in attributes_match_reference()
293 struct pkcs11_attribute_head pkcs11_ref = { }; in attributes_match_add_reference() local
297 TEE_MemMove(&pkcs11_ref, ref_attr, sizeof(pkcs11_ref)); in attributes_match_add_reference()
299 rc = get_attribute_ptr(*head, pkcs11_ref.id, &value, &size); in attributes_match_add_reference()
301 rc = add_attribute(head, pkcs11_ref.id, in attributes_match_add_reference()
302 ref_attr + sizeof(pkcs11_ref), in attributes_match_add_reference()
303 pkcs11_ref.size); in attributes_match_add_reference()
307 if (rc || !value || size != pkcs11_ref.size || in attributes_match_add_reference()
308 TEE_MemCompare(ref_attr + sizeof(pkcs11_ref), value, in attributes_match_add_reference()
313 ref_attr += sizeof(pkcs11_ref) + pkcs11_ref.size; in attributes_match_add_reference()
348 struct pkcs11_attribute_head pkcs11_ref = { }; in __trace_attributes() local
351 TEE_MemMove(&pkcs11_ref, cur, sizeof(pkcs11_ref)); in __trace_attributes()
352 TEE_MemMove(&data[0], cur + sizeof(pkcs11_ref), in __trace_attributes()
353 MIN(pkcs11_ref.size, sizeof(data))); in __trace_attributes()
355 next_off = sizeof(pkcs11_ref) + pkcs11_ref.size; in __trace_attributes()
357 switch (pkcs11_ref.size) { in __trace_attributes()
360 prefix, id2str_attr(pkcs11_ref.id), "*", in __trace_attributes()
361 pkcs11_ref.id, pkcs11_ref.size); in __trace_attributes()
365 prefix, id2str_attr(pkcs11_ref.id), in __trace_attributes()
366 id2str_attr_value(pkcs11_ref.id, in __trace_attributes()
367 pkcs11_ref.size, in __trace_attributes()
368 cur + sizeof(pkcs11_ref)), in __trace_attributes()
369 pkcs11_ref.id, pkcs11_ref.size, data[0]); in __trace_attributes()
373 prefix, id2str_attr(pkcs11_ref.id), in __trace_attributes()
374 id2str_attr_value(pkcs11_ref.id, in __trace_attributes()
375 pkcs11_ref.size, in __trace_attributes()
376 cur + sizeof(pkcs11_ref)), in __trace_attributes()
377 pkcs11_ref.id, pkcs11_ref.size, data[0], in __trace_attributes()
382 prefix, id2str_attr(pkcs11_ref.id), in __trace_attributes()
383 id2str_attr_value(pkcs11_ref.id, in __trace_attributes()
384 pkcs11_ref.size, in __trace_attributes()
385 cur + sizeof(pkcs11_ref)), in __trace_attributes()
386 pkcs11_ref.id, pkcs11_ref.size, in __trace_attributes()
391 prefix, id2str_attr(pkcs11_ref.id), in __trace_attributes()
392 id2str_attr_value(pkcs11_ref.id, in __trace_attributes()
393 pkcs11_ref.size, in __trace_attributes()
394 cur + sizeof(pkcs11_ref)), in __trace_attributes()
395 pkcs11_ref.id, pkcs11_ref.size, in __trace_attributes()
400 prefix, id2str_attr(pkcs11_ref.id), in __trace_attributes()
401 id2str_attr_value(pkcs11_ref.id, in __trace_attributes()
402 pkcs11_ref.size, in __trace_attributes()
403 cur + sizeof(pkcs11_ref)), in __trace_attributes()
404 pkcs11_ref.id, pkcs11_ref.size, in __trace_attributes()
409 switch (pkcs11_ref.id) { in __trace_attributes()
413 if (pkcs11_ref.size) in __trace_attributes()
415 cur + sizeof(pkcs11_ref)); in __trace_attributes()