Lines Matching refs:dgst
24 TPM2B_DIGEST dgst = {4, {0}}; in tpm2b_marshal_success() local
26 uint8_t buffer[sizeof(dgst) + sizeof(point)] = {0}; in tpm2b_marshal_success()
35 memcpy(dgst.buffer, &value, sizeof(value)); in tpm2b_marshal_success()
41 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, buffer, buffer_size, NULL); in tpm2b_marshal_success()
70 TPM2B_DIGEST dgst = {4, {0}}; in tpm2b_marshal_success_offset() local
73 uint8_t buffer[sizeof(dgst) + sizeof(point) + 10] = {0}; in tpm2b_marshal_success_offset()
82 memcpy(dgst.buffer, &value, sizeof(value)); in tpm2b_marshal_success_offset()
88 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, buffer, buffer_size, &offset); in tpm2b_marshal_success_offset()
123 TPM2B_DIGEST dgst = {4, {0}}; in tpm2b_marshal_buffer_null_with_offset() local
126 size_t buffer_size = sizeof(dgst) + sizeof(point) + 10; in tpm2b_marshal_buffer_null_with_offset()
132 memcpy(dgst.buffer, &value, sizeof(value)); in tpm2b_marshal_buffer_null_with_offset()
138 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, NULL, buffer_size, &offset); in tpm2b_marshal_buffer_null_with_offset()
147 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, NULL, buffer_size, &offset); in tpm2b_marshal_buffer_null_with_offset()
159 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, NULL, buffer_size, &offset1); in tpm2b_marshal_buffer_null_with_offset()
163 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, buffer, buffer_size, &offset2); in tpm2b_marshal_buffer_null_with_offset()
175 TPM2B_DIGEST dgst = {4, {0}}; in tpm2b_marshal_buffer_null_offset_null() local
180 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, NULL, buffer_size, NULL); in tpm2b_marshal_buffer_null_offset_null()
192 TPM2B_DIGEST dgst = {4, {0}}; in tpm2b_marshal_buffer_size_lt_data_nad_lt_offset() local
195 uint8_t buffer[sizeof(dgst) + sizeof(point)] = {0}; in tpm2b_marshal_buffer_size_lt_data_nad_lt_offset()
201 memcpy(dgst.buffer, &value, sizeof(value)); in tpm2b_marshal_buffer_size_lt_data_nad_lt_offset()
207 rc = Tss2_MU_TPM2B_DIGEST_Marshal(&dgst, buffer, buffer_size, &offset); in tpm2b_marshal_buffer_size_lt_data_nad_lt_offset()
220 TPM2B_DIGEST dgst = {0}; in tpm2b_unmarshal_success() local
234 rc = Tss2_MU_TPM2B_DIGEST_Unmarshal(buffer, buffer_size, &offset, &dgst); in tpm2b_unmarshal_success()
236 assert_int_equal (dgst.size, 4); in tpm2b_unmarshal_success()
237 memcpy(&val, dgst.buffer, sizeof(val)); in tpm2b_unmarshal_success()
258 TPM2B_DIGEST dgst = {0}; in tpm2b_unmarshal_success_offset() local
275 rc = Tss2_MU_TPM2B_DIGEST_Unmarshal(buffer, buffer_size, &offset, &dgst); in tpm2b_unmarshal_success_offset()
277 assert_int_equal (dgst.size, 4); in tpm2b_unmarshal_success_offset()
278 memcpy(&val, dgst.buffer, sizeof(val)); in tpm2b_unmarshal_success_offset()
299 TPM2B_DIGEST dgst = {0}; in tpm2b_unmarshal_buffer_null() local
316 rc = Tss2_MU_TPM2B_DIGEST_Unmarshal (NULL, 1, NULL, &dgst); in tpm2b_unmarshal_buffer_null()
368 TPM2B_DIGEST dgst = {4, {0x00, 0x01, 0x02, 0x03}}; in tpm2b_unmarshal_buffer_size_lt_data_nad_lt_offset() local
370 uint8_t buffer[sizeof(dgst) + sizeof(point)] = { 0 }; in tpm2b_unmarshal_buffer_size_lt_data_nad_lt_offset()
371 size_t offset = sizeof(dgst) - 5; in tpm2b_unmarshal_buffer_size_lt_data_nad_lt_offset()
374 rc = Tss2_MU_TPM2B_DIGEST_Unmarshal (buffer, 6, &offset, &dgst); in tpm2b_unmarshal_buffer_size_lt_data_nad_lt_offset()
376 assert_int_equal (offset, sizeof(dgst) - 5); in tpm2b_unmarshal_buffer_size_lt_data_nad_lt_offset()
380 assert_int_equal (offset, sizeof(dgst) - 5); in tpm2b_unmarshal_buffer_size_lt_data_nad_lt_offset()