• Home
  • Raw
  • Download

Lines Matching refs:buffer_ptr

33   BYTE *buffer_ptr = buffer;                  \
40 BYTE *buffer_ptr = buffer; \
46 buffer_ptr = buffer; \
51 buffer_ptr = buffer; \
83 UINT16 bytes_marshalled = uint32_t_Marshal(&value, &buffer_ptr, &size); in BasicTypesSuccessTest()
86 CHECK_EQ(buffer_ptr, buffer+num_bytes) in BasicTypesSuccessTest()
89 TPM_RC rc = uint32_t_Unmarshal(&value, &buffer_ptr, &size); in BasicTypesSuccessTest()
92 CHECK_EQ(buffer_ptr, buffer+num_bytes); in BasicTypesSuccessTest()
101 UINT16 bytes_marshalled = uint32_t_Marshal(&value, &buffer_ptr, &size); in BasicTypesFailureTest()
104 CHECK_EQ(buffer, buffer_ptr); in BasicTypesFailureTest()
106 bytes_marshalled = uint32_t_Marshal(&value, &buffer_ptr, NULL); in BasicTypesFailureTest()
108 CHECK_EQ(buffer, buffer_ptr); in BasicTypesFailureTest()
110 TPM_RC rc = uint32_t_Unmarshal(&value, &buffer_ptr, &size); in BasicTypesFailureTest()
113 rc = uint32_t_Unmarshal(&value, &buffer_ptr, NULL); in BasicTypesFailureTest()
120 UINT16 bytes_marshalled = TPM_KEY_BITS_Marshal(&value, &buffer_ptr, &size); in TypedefSuccessTest()
123 CHECK_EQ(buffer_ptr, buffer+num_bytes); in TypedefSuccessTest()
126 TPM_RC rc = TPM_KEY_BITS_Unmarshal(&value, &buffer_ptr, &size); in TypedefSuccessTest()
129 CHECK_EQ(buffer_ptr, buffer+num_bytes); in TypedefSuccessTest()
138 UINT16 bytes_marshalled = TPM_KEY_BITS_Marshal(&value, &buffer_ptr, &size); in TypedefFailureTest()
141 CHECK_EQ(buffer, buffer_ptr); in TypedefFailureTest()
143 bytes_marshalled = TPM_KEY_BITS_Marshal(&value, &buffer_ptr, NULL); in TypedefFailureTest()
145 CHECK_EQ(buffer, buffer_ptr); in TypedefFailureTest()
147 TPM_RC rc = TPM_KEY_BITS_Unmarshal(&value, &buffer_ptr, &size); in TypedefFailureTest()
150 rc = TPM_KEY_BITS_Unmarshal(&value, &buffer_ptr, NULL); in TypedefFailureTest()
157 UINT16 bytes_marshalled = TPM_ST_Marshal(&value, &buffer_ptr, &size); in ConstantTypeSuccessTest()
160 CHECK_EQ(buffer_ptr, buffer+num_bytes); in ConstantTypeSuccessTest()
163 TPM_RC rc = TPM_ST_Unmarshal(&value, &buffer_ptr, &size); in ConstantTypeSuccessTest()
166 CHECK_EQ(buffer_ptr, buffer+num_bytes); in ConstantTypeSuccessTest()
174 TPM_RC rc = TPM_ECC_CURVE_Unmarshal(&value, &buffer_ptr, &size); in ConstantTypeFailureTest()
185 UINT16 bytes_marshalled = TPMA_OBJECT_Marshal(&value, &buffer_ptr, &size); in AttributeStructSuccessTest()
188 CHECK_EQ(buffer_ptr, buffer+num_bytes); in AttributeStructSuccessTest()
191 TPM_RC rc = TPMA_OBJECT_Unmarshal(&value, &buffer_ptr, &size); in AttributeStructSuccessTest()
194 CHECK_EQ(buffer_ptr, buffer+num_bytes); in AttributeStructSuccessTest()
204 TPMA_OBJECT_Marshal(&value, &buffer_ptr, &size); in AttributeStructFailureTest()
206 TPM_RC rc = TPMA_OBJECT_Unmarshal(&value, &buffer_ptr, &size); in AttributeStructFailureTest()
215 UINT16 bytes_marshalled = TPMI_DH_ENTITY_Marshal(&value, &buffer_ptr, &size); in InterfaceSuccessTest()
218 CHECK_EQ(buffer_ptr, buffer+num_bytes); in InterfaceSuccessTest()
221 TPM_RC rc = TPMI_DH_ENTITY_Unmarshal(&value, &buffer_ptr, &size, FALSE); in InterfaceSuccessTest()
224 CHECK_EQ(buffer_ptr, buffer+num_bytes); in InterfaceSuccessTest()
229 bytes_marshalled = TPMI_DH_ENTITY_Marshal(&value, &buffer_ptr, &size); in InterfaceSuccessTest()
232 CHECK_EQ(buffer_ptr, buffer+num_bytes); in InterfaceSuccessTest()
235 rc = TPMI_DH_ENTITY_Unmarshal(&value, &buffer_ptr, &size, TRUE); in InterfaceSuccessTest()
238 CHECK_EQ(buffer_ptr, buffer+num_bytes); in InterfaceSuccessTest()
243 bytes_marshalled = TPMI_DH_ENTITY_Marshal(&value, &buffer_ptr, &size); in InterfaceSuccessTest()
246 CHECK_EQ(buffer_ptr, buffer+num_bytes); in InterfaceSuccessTest()
249 rc = TPMI_DH_ENTITY_Unmarshal(&value, &buffer_ptr, &size, FALSE); in InterfaceSuccessTest()
252 CHECK_EQ(buffer_ptr, buffer+num_bytes); in InterfaceSuccessTest()
260 TPMI_DH_OBJECT_Marshal(&value, &buffer_ptr, &size); in InterfaceRangeFailureTest()
263 TPM_RC rc = TPMI_DH_OBJECT_Unmarshal(&value, &buffer_ptr, &size, FALSE); in InterfaceRangeFailureTest()
267 TPMI_DH_OBJECT_Marshal(&value, &buffer_ptr, &size); in InterfaceRangeFailureTest()
269 rc = TPMI_DH_OBJECT_Unmarshal(&value, &buffer_ptr, &size, FALSE); in InterfaceRangeFailureTest()
276 TPMI_DH_OBJECT_Marshal(&value, &buffer_ptr, &size); in InterfaceNullFailureTest()
278 TPM_RC rc = TPMI_DH_OBJECT_Unmarshal(&value, &buffer_ptr, &size, FALSE); in InterfaceNullFailureTest()
285 TPMI_DH_ENTITY_Marshal(&value, &buffer_ptr, &size); in InterfaceValueFailureTest()
287 TPM_RC rc = TPMI_DH_ENTITY_Unmarshal(&value, &buffer_ptr, &size, TRUE); in InterfaceValueFailureTest()
295 TPMI_AES_KEY_BITS_Marshal(&value, &buffer_ptr, &size); in InterfaceKeyBitsTest()
296 UINT16 bytes_marshalled = TPMI_AES_KEY_BITS_Marshal(&value, &buffer_ptr, &size); in InterfaceKeyBitsTest()
299 CHECK_EQ(buffer_ptr, buffer+num_bytes); in InterfaceKeyBitsTest()
301 TPM_RC rc = TPMI_AES_KEY_BITS_Unmarshal(&value, &buffer_ptr, &size, TRUE); in InterfaceKeyBitsTest()
314 TPMS_CLOCK_INFO_Marshal(&value, &buffer_ptr, &size); in StructureSuccessNormalTest()
316 TPM_RC rc = TPMS_CLOCK_INFO_Unmarshal(&value, &buffer_ptr, &size); in StructureSuccessNormalTest()
329 UINT16 bytes_marshalled = TPML_DIGEST_Marshal(&value, &buffer_ptr, &size); in StructureSuccessValueTest()
332 TPM_RC rc = TPML_DIGEST_Unmarshal(&value, &buffer_ptr, &size); in StructureSuccessValueTest()
343 TPMS_PCR_SELECTION_Marshal(&value, &buffer_ptr, &size); in StructureFailureNullTest()
345 TPM_RC rc = TPMS_PCR_SELECTION_Unmarshal(&value, &buffer_ptr, &size); in StructureFailureNullTest()
354 UINT16 bytes_marshalled = TPM2B_DIGEST_Marshal(&value, &buffer_ptr, &size); in StructureSuccessArrayTest()
358 TPM_RC rc = TPM2B_DIGEST_Unmarshal(&value, &buffer_ptr, &size); in StructureSuccessArrayTest()
371 UINT16 bytes_marshalled = TPMT_TK_HASHCHECK_Marshal(&value, &buffer_ptr, &size); in StructureSuccessNullTest()
375 TPM_RC rc = TPMT_TK_HASHCHECK_Unmarshal(&value, &buffer_ptr, &size); in StructureSuccessNullTest()
385 UINT16 bytes_marshalled = TPMT_TK_HASHCHECK_Marshal(&value, &buffer_ptr, &size); in StructureFailureTagTest()
389 TPM_RC rc = TPMT_TK_HASHCHECK_Unmarshal(&value, &buffer_ptr, &size); in StructureFailureTagTest()
400 UINT16 bytes_marshalled = TPM2B_NV_PUBLIC_Marshal(&value, &buffer_ptr, &size); in StructureSuccessSizeCheckTest()
402 TPM_RC rc = TPM2B_NV_PUBLIC_Unmarshal(&value, &buffer_ptr, &size); in StructureSuccessSizeCheckTest()