Lines Matching refs:nsm_req

305     NSMDescribePCRReq *nsm_req)  in get_nsm_describe_pcr_req()  argument
342 nsm_req->index = cbor_get_uint8(pair[i].value); in get_nsm_describe_pcr_req()
376 NSMDescribePCRReq nsm_req; in handle_describe_pcr() local
382 &nsm_req); in handle_describe_pcr()
389 if (nsm_req.index >= vnsm->max_pcrs) { in handle_describe_pcr()
395 pcr = &(vnsm->pcrs[nsm_req.index]); in handle_describe_pcr()
459 NSMExtendPCRReq *nsm_req) in get_nsm_extend_pcr_req() argument
500 nsm_req->index = cbor_get_uint8(pair[i].value); in get_nsm_extend_pcr_req()
514 nsm_req->data_len = cbor_bytestring_length(pair[i].value); in get_nsm_extend_pcr_req()
520 memcpy(nsm_req->data, str, nsm_req->data_len); in get_nsm_extend_pcr_req()
559 g_autofree NSMExtendPCRReq *nsm_req = g_malloc(sizeof(NSMExtendPCRReq)); in handle_extend_pcr() local
562 nsm_req); in handle_extend_pcr()
569 if (nsm_req->index >= vnsm->max_pcrs) { in handle_extend_pcr()
576 pcr = &(vnsm->pcrs[nsm_req->index]); in handle_extend_pcr()
585 if (!vnsm->extend_pcr(vnsm, nsm_req->index, nsm_req->data, in handle_extend_pcr()
586 nsm_req->data_len)) { in handle_extend_pcr()
647 NSMLockPCRReq *nsm_req) in get_nsm_lock_pcr_req() argument
683 nsm_req->index = cbor_get_uint8(pair[i].value); in get_nsm_lock_pcr_req()
707 NSMLockPCRReq nsm_req; in handle_lock_pcr() local
712 type = get_nsm_lock_pcr_req(request->iov_base, request->iov_len, &nsm_req); in handle_lock_pcr()
719 if (nsm_req.index >= vnsm->max_pcrs) { in handle_lock_pcr()
726 pcr = &(vnsm->pcrs[nsm_req.index]); in handle_lock_pcr()
782 NSMLockPCRsReq *nsm_req) in get_nsm_lock_pcrs_req() argument
818 nsm_req->range = cbor_get_uint8(pair[i].value); in get_nsm_lock_pcrs_req()
842 NSMLockPCRsReq nsm_req; in handle_lock_pcrs() local
846 type = get_nsm_lock_pcrs_req(request->iov_base, request->iov_len, &nsm_req); in handle_lock_pcrs()
853 if (nsm_req.range > vnsm->max_pcrs) { in handle_lock_pcrs()
860 for (int i = 0; i < nsm_req.range; ++i) { in handle_lock_pcrs()
960 NSMAttestationReq *nsm_req) in get_nsm_attestation_req() argument
969 nsm_req->public_key.is_null = true; in get_nsm_attestation_req()
970 nsm_req->user_data.is_null = true; in get_nsm_attestation_req()
971 nsm_req->nonce.is_null = true; in get_nsm_attestation_req()
1001 if (!fill_attestation_property(&(nsm_req->public_key), in get_nsm_attestation_req()
1010 if (!fill_attestation_property(&(nsm_req->user_data), in get_nsm_attestation_req()
1019 if (!fill_attestation_property(&(nsm_req->nonce), pair[i].value)) { in get_nsm_attestation_req()
1357 g_autofree NSMAttestationReq *nsm_req = g_malloc(sizeof(NSMAttestationReq)); in handle_attestation() local
1359 nsm_req->public_key.is_null = true; in handle_attestation()
1360 nsm_req->user_data.is_null = true; in handle_attestation()
1361 nsm_req->nonce.is_null = true; in handle_attestation()
1364 nsm_req); in handle_attestation()
1382 if (!add_payload_to_cose(cose, vnsm, nsm_req)) { in handle_attestation()