Lines Matching refs:cose
1035 static bool add_protected_header_to_cose(cbor_item_t *cose) in add_protected_header_to_cose() argument
1075 if (!qemu_cbor_array_push(cose, bs)) { in add_protected_header_to_cose()
1097 static bool add_unprotected_header_to_cose(cbor_item_t *cose) in add_unprotected_header_to_cose() argument
1103 if (!qemu_cbor_array_push(cose, map)) { in add_unprotected_header_to_cose()
1155 static bool add_payload_to_cose(cbor_item_t *cose, VirtIONSM *vnsm, in add_payload_to_cose() argument
1250 if (!qemu_cbor_array_push(cose, bs)) { in add_payload_to_cose()
1264 static bool add_signature_to_cose(cbor_item_t *cose) in add_signature_to_cose() argument
1275 if (!qemu_cbor_array_push(cose, bs)) { in add_signature_to_cose()
1350 cbor_item_t *cose = NULL; in handle_attestation() local
1372 cose = cbor_new_definite_array(4); in handle_attestation()
1373 if (!cose) { in handle_attestation()
1376 if (!add_protected_header_to_cose(cose)) { in handle_attestation()
1379 if (!add_unprotected_header_to_cose(cose)) { in handle_attestation()
1382 if (!add_payload_to_cose(cose, vnsm, nsm_req)) { in handle_attestation()
1385 if (!add_signature_to_cose(cose)) { in handle_attestation()
1389 len = cbor_serialize(cose, buf, buf_len); in handle_attestation()
1420 if (cose) { in handle_attestation()
1421 cbor_decref(&cose); in handle_attestation()