Lines Matching full:size
9 UINT16 uint8_t_Marshal(uint8_t* source, BYTE** buffer, INT32* size) { in uint8_t_Marshal() argument
11 if (!size || *size < sizeof(uint8_t)) { in uint8_t_Marshal()
29 *size -= sizeof(uint8_t); in uint8_t_Marshal()
33 TPM_RC uint8_t_Unmarshal(uint8_t* target, BYTE** buffer, INT32* size) { in uint8_t_Unmarshal() argument
35 if (!size || *size < sizeof(uint8_t)) { in uint8_t_Unmarshal()
53 *size -= sizeof(uint8_t); in uint8_t_Unmarshal()
57 UINT16 int8_t_Marshal(int8_t* source, BYTE** buffer, INT32* size) { in int8_t_Marshal() argument
59 if (!size || *size < sizeof(int8_t)) { in int8_t_Marshal()
77 *size -= sizeof(int8_t); in int8_t_Marshal()
81 TPM_RC int8_t_Unmarshal(int8_t* target, BYTE** buffer, INT32* size) { in int8_t_Unmarshal() argument
83 if (!size || *size < sizeof(int8_t)) { in int8_t_Unmarshal()
101 *size -= sizeof(int8_t); in int8_t_Unmarshal()
105 UINT16 uint16_t_Marshal(uint16_t* source, BYTE** buffer, INT32* size) { in uint16_t_Marshal() argument
107 if (!size || *size < sizeof(uint16_t)) { in uint16_t_Marshal()
125 *size -= sizeof(uint16_t); in uint16_t_Marshal()
129 TPM_RC uint16_t_Unmarshal(uint16_t* target, BYTE** buffer, INT32* size) { in uint16_t_Unmarshal() argument
131 if (!size || *size < sizeof(uint16_t)) { in uint16_t_Unmarshal()
149 *size -= sizeof(uint16_t); in uint16_t_Unmarshal()
153 UINT16 int16_t_Marshal(int16_t* source, BYTE** buffer, INT32* size) { in int16_t_Marshal() argument
155 if (!size || *size < sizeof(int16_t)) { in int16_t_Marshal()
173 *size -= sizeof(int16_t); in int16_t_Marshal()
177 TPM_RC int16_t_Unmarshal(int16_t* target, BYTE** buffer, INT32* size) { in int16_t_Unmarshal() argument
179 if (!size || *size < sizeof(int16_t)) { in int16_t_Unmarshal()
197 *size -= sizeof(int16_t); in int16_t_Unmarshal()
201 UINT16 uint32_t_Marshal(uint32_t* source, BYTE** buffer, INT32* size) { in uint32_t_Marshal() argument
203 if (!size || *size < sizeof(uint32_t)) { in uint32_t_Marshal()
221 *size -= sizeof(uint32_t); in uint32_t_Marshal()
225 TPM_RC uint32_t_Unmarshal(uint32_t* target, BYTE** buffer, INT32* size) { in uint32_t_Unmarshal() argument
227 if (!size || *size < sizeof(uint32_t)) { in uint32_t_Unmarshal()
245 *size -= sizeof(uint32_t); in uint32_t_Unmarshal()
249 UINT16 int32_t_Marshal(int32_t* source, BYTE** buffer, INT32* size) { in int32_t_Marshal() argument
251 if (!size || *size < sizeof(int32_t)) { in int32_t_Marshal()
269 *size -= sizeof(int32_t); in int32_t_Marshal()
273 TPM_RC int32_t_Unmarshal(int32_t* target, BYTE** buffer, INT32* size) { in int32_t_Unmarshal() argument
275 if (!size || *size < sizeof(int32_t)) { in int32_t_Unmarshal()
293 *size -= sizeof(int32_t); in int32_t_Unmarshal()
297 UINT16 uint64_t_Marshal(uint64_t* source, BYTE** buffer, INT32* size) { in uint64_t_Marshal() argument
299 if (!size || *size < sizeof(uint64_t)) { in uint64_t_Marshal()
317 *size -= sizeof(uint64_t); in uint64_t_Marshal()
321 TPM_RC uint64_t_Unmarshal(uint64_t* target, BYTE** buffer, INT32* size) { in uint64_t_Unmarshal() argument
323 if (!size || *size < sizeof(uint64_t)) { in uint64_t_Unmarshal()
341 *size -= sizeof(uint64_t); in uint64_t_Unmarshal()
345 UINT16 int64_t_Marshal(int64_t* source, BYTE** buffer, INT32* size) { in int64_t_Marshal() argument
347 if (!size || *size < sizeof(int64_t)) { in int64_t_Marshal()
365 *size -= sizeof(int64_t); in int64_t_Marshal()
369 TPM_RC int64_t_Unmarshal(int64_t* target, BYTE** buffer, INT32* size) { in int64_t_Unmarshal() argument
371 if (!size || *size < sizeof(int64_t)) { in int64_t_Unmarshal()
389 *size -= sizeof(int64_t); in int64_t_Unmarshal()
393 UINT16 BYTE_Marshal(BYTE* source, BYTE** buffer, INT32* size) { in BYTE_Marshal() argument
394 return uint8_t_Marshal(source, buffer, size); in BYTE_Marshal()
397 TPM_RC BYTE_Unmarshal(BYTE* target, BYTE** buffer, INT32* size) { in BYTE_Unmarshal() argument
398 return uint8_t_Unmarshal(target, buffer, size); in BYTE_Unmarshal()
401 UINT16 INT16_Marshal(INT16* source, BYTE** buffer, INT32* size) { in INT16_Marshal() argument
402 return int16_t_Marshal(source, buffer, size); in INT16_Marshal()
405 TPM_RC INT16_Unmarshal(INT16* target, BYTE** buffer, INT32* size) { in INT16_Unmarshal() argument
406 return int16_t_Unmarshal(target, buffer, size); in INT16_Unmarshal()
409 UINT16 INT32_Marshal(INT32* source, BYTE** buffer, INT32* size) { in INT32_Marshal() argument
410 return int32_t_Marshal(source, buffer, size); in INT32_Marshal()
413 TPM_RC INT32_Unmarshal(INT32* target, BYTE** buffer, INT32* size) { in INT32_Unmarshal() argument
414 return int32_t_Unmarshal(target, buffer, size); in INT32_Unmarshal()
417 UINT16 INT64_Marshal(INT64* source, BYTE** buffer, INT32* size) { in INT64_Marshal() argument
418 return int64_t_Marshal(source, buffer, size); in INT64_Marshal()
421 TPM_RC INT64_Unmarshal(INT64* target, BYTE** buffer, INT32* size) { in INT64_Unmarshal() argument
422 return int64_t_Unmarshal(target, buffer, size); in INT64_Unmarshal()
425 UINT16 INT8_Marshal(INT8* source, BYTE** buffer, INT32* size) { in INT8_Marshal() argument
426 return int8_t_Marshal(source, buffer, size); in INT8_Marshal()
429 TPM_RC INT8_Unmarshal(INT8* target, BYTE** buffer, INT32* size) { in INT8_Unmarshal() argument
430 return int8_t_Unmarshal(target, buffer, size); in INT8_Unmarshal()
433 UINT16 UINT16_Marshal(UINT16* source, BYTE** buffer, INT32* size) { in UINT16_Marshal() argument
434 return uint16_t_Marshal(source, buffer, size); in UINT16_Marshal()
437 TPM_RC UINT16_Unmarshal(UINT16* target, BYTE** buffer, INT32* size) { in UINT16_Unmarshal() argument
438 return uint16_t_Unmarshal(target, buffer, size); in UINT16_Unmarshal()
441 UINT16 TPM2B_ATTEST_Marshal(TPM2B_ATTEST* source, BYTE** buffer, INT32* size) { in TPM2B_ATTEST_Marshal() argument
444 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ATTEST_Marshal()
445 for (i = 0; i < source->t.size; ++i) { in TPM2B_ATTEST_Marshal()
446 total_size += BYTE_Marshal(&source->t.attestationData[i], buffer, size); in TPM2B_ATTEST_Marshal()
453 INT32* size) { in TPM2B_ATTEST_Unmarshal() argument
456 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_ATTEST_Unmarshal()
460 if (target->t.size == 0) { in TPM2B_ATTEST_Unmarshal()
463 if (target->t.size > sizeof(TPMS_ATTEST)) { in TPM2B_ATTEST_Unmarshal()
466 for (i = 0; i < target->t.size; ++i) { in TPM2B_ATTEST_Unmarshal()
467 result = BYTE_Unmarshal(&target->t.attestationData[i], buffer, size); in TPM2B_ATTEST_Unmarshal()
475 UINT16 TPM2B_DIGEST_Marshal(TPM2B_DIGEST* source, BYTE** buffer, INT32* size) { in TPM2B_DIGEST_Marshal() argument
478 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_DIGEST_Marshal()
479 for (i = 0; i < source->t.size; ++i) { in TPM2B_DIGEST_Marshal()
480 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_DIGEST_Marshal()
487 INT32* size) { in TPM2B_DIGEST_Unmarshal() argument
490 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_DIGEST_Unmarshal()
494 if (target->t.size == 0) { in TPM2B_DIGEST_Unmarshal()
497 if (target->t.size > sizeof(TPMU_HA)) { in TPM2B_DIGEST_Unmarshal()
500 for (i = 0; i < target->t.size; ++i) { in TPM2B_DIGEST_Unmarshal()
501 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_DIGEST_Unmarshal()
509 UINT16 TPM2B_AUTH_Marshal(TPM2B_AUTH* source, BYTE** buffer, INT32* size) { in TPM2B_AUTH_Marshal() argument
510 return TPM2B_DIGEST_Marshal(source, buffer, size); in TPM2B_AUTH_Marshal()
513 TPM_RC TPM2B_AUTH_Unmarshal(TPM2B_AUTH* target, BYTE** buffer, INT32* size) { in TPM2B_AUTH_Unmarshal() argument
514 return TPM2B_DIGEST_Unmarshal(target, buffer, size); in TPM2B_AUTH_Unmarshal()
519 INT32* size) { in TPM2B_CONTEXT_DATA_Marshal() argument
522 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_CONTEXT_DATA_Marshal()
523 for (i = 0; i < source->t.size; ++i) { in TPM2B_CONTEXT_DATA_Marshal()
524 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_CONTEXT_DATA_Marshal()
531 INT32* size) { in TPM2B_CONTEXT_DATA_Unmarshal() argument
534 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_CONTEXT_DATA_Unmarshal()
538 if (target->t.size == 0) { in TPM2B_CONTEXT_DATA_Unmarshal()
541 if (target->t.size > sizeof(TPMS_CONTEXT_DATA)) { in TPM2B_CONTEXT_DATA_Unmarshal()
544 for (i = 0; i < target->t.size; ++i) { in TPM2B_CONTEXT_DATA_Unmarshal()
545 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_CONTEXT_DATA_Unmarshal()
555 INT32* size) { in TPM2B_CONTEXT_SENSITIVE_Marshal() argument
558 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_CONTEXT_SENSITIVE_Marshal()
559 for (i = 0; i < source->t.size; ++i) { in TPM2B_CONTEXT_SENSITIVE_Marshal()
560 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_CONTEXT_SENSITIVE_Marshal()
567 INT32* size) { in TPM2B_CONTEXT_SENSITIVE_Unmarshal() argument
570 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_CONTEXT_SENSITIVE_Unmarshal()
574 if (target->t.size == 0) { in TPM2B_CONTEXT_SENSITIVE_Unmarshal()
577 if (target->t.size > MAX_CONTEXT_SIZE) { in TPM2B_CONTEXT_SENSITIVE_Unmarshal()
580 for (i = 0; i < target->t.size; ++i) { in TPM2B_CONTEXT_SENSITIVE_Unmarshal()
581 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_CONTEXT_SENSITIVE_Unmarshal()
589 UINT16 TPM_ALG_ID_Marshal(TPM_ALG_ID* source, BYTE** buffer, INT32* size) { in TPM_ALG_ID_Marshal() argument
590 return uint16_t_Marshal(source, buffer, size); in TPM_ALG_ID_Marshal()
593 TPM_RC TPM_ALG_ID_Unmarshal(TPM_ALG_ID* target, BYTE** buffer, INT32* size) { in TPM_ALG_ID_Unmarshal() argument
595 result = uint16_t_Unmarshal(target, buffer, size); in TPM_ALG_ID_Unmarshal()
782 UINT16 TPM2B_DATA_Marshal(TPM2B_DATA* source, BYTE** buffer, INT32* size) { in TPM2B_DATA_Marshal() argument
785 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_DATA_Marshal()
786 for (i = 0; i < source->t.size; ++i) { in TPM2B_DATA_Marshal()
787 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_DATA_Marshal()
792 TPM_RC TPM2B_DATA_Unmarshal(TPM2B_DATA* target, BYTE** buffer, INT32* size) { in TPM2B_DATA_Unmarshal() argument
795 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_DATA_Unmarshal()
799 if (target->t.size == 0) { in TPM2B_DATA_Unmarshal()
802 if (target->t.size > sizeof(TPMT_HA)) { in TPM2B_DATA_Unmarshal()
805 for (i = 0; i < target->t.size; ++i) { in TPM2B_DATA_Unmarshal()
806 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_DATA_Unmarshal()
816 INT32* size) { in TPMA_LOCALITY_Marshal() argument
817 return uint8_t_Marshal((uint8_t*)source, buffer, size); in TPMA_LOCALITY_Marshal()
822 INT32* size) { in TPMA_LOCALITY_Unmarshal() argument
824 result = uint8_t_Unmarshal((uint8_t*)target, buffer, size); in TPMA_LOCALITY_Unmarshal()
831 UINT16 TPM2B_NAME_Marshal(TPM2B_NAME* source, BYTE** buffer, INT32* size) { in TPM2B_NAME_Marshal() argument
834 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_NAME_Marshal()
835 for (i = 0; i < source->t.size; ++i) { in TPM2B_NAME_Marshal()
836 total_size += BYTE_Marshal(&source->t.name[i], buffer, size); in TPM2B_NAME_Marshal()
841 TPM_RC TPM2B_NAME_Unmarshal(TPM2B_NAME* target, BYTE** buffer, INT32* size) { in TPM2B_NAME_Unmarshal() argument
844 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_NAME_Unmarshal()
848 if (target->t.size == 0) { in TPM2B_NAME_Unmarshal()
851 if (target->t.size > sizeof(TPMU_NAME)) { in TPM2B_NAME_Unmarshal()
854 for (i = 0; i < target->t.size; ++i) { in TPM2B_NAME_Unmarshal()
855 result = BYTE_Unmarshal(&target->t.name[i], buffer, size); in TPM2B_NAME_Unmarshal()
865 INT32* size) { in TPMI_ALG_HASH_Marshal() argument
866 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_HASH_Marshal()
871 INT32* size, in TPMI_ALG_HASH_Unmarshal() argument
875 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_HASH_Unmarshal()
910 UINT16 UINT8_Marshal(UINT8* source, BYTE** buffer, INT32* size) { in UINT8_Marshal() argument
911 return uint8_t_Marshal(source, buffer, size); in UINT8_Marshal()
914 TPM_RC UINT8_Unmarshal(UINT8* target, BYTE** buffer, INT32* size) { in UINT8_Unmarshal() argument
915 return uint8_t_Unmarshal(target, buffer, size); in UINT8_Unmarshal()
920 INT32* size) { in TPMS_PCR_SELECTION_Marshal() argument
923 total_size += TPMI_ALG_HASH_Marshal(&source->hash, buffer, size); in TPMS_PCR_SELECTION_Marshal()
924 total_size += UINT8_Marshal(&source->sizeofSelect, buffer, size); in TPMS_PCR_SELECTION_Marshal()
926 total_size += BYTE_Marshal(&source->pcrSelect[i], buffer, size); in TPMS_PCR_SELECTION_Marshal()
933 INT32* size) { in TPMS_PCR_SELECTION_Unmarshal() argument
936 result = TPMI_ALG_HASH_Unmarshal(&target->hash, buffer, size, FALSE); in TPMS_PCR_SELECTION_Unmarshal()
940 result = UINT8_Unmarshal(&target->sizeofSelect, buffer, size); in TPMS_PCR_SELECTION_Unmarshal()
951 result = BYTE_Unmarshal(&target->pcrSelect[i], buffer, size); in TPMS_PCR_SELECTION_Unmarshal()
959 UINT16 UINT32_Marshal(UINT32* source, BYTE** buffer, INT32* size) { in UINT32_Marshal() argument
960 return uint32_t_Marshal(source, buffer, size); in UINT32_Marshal()
963 TPM_RC UINT32_Unmarshal(UINT32* target, BYTE** buffer, INT32* size) { in UINT32_Unmarshal() argument
964 return uint32_t_Unmarshal(target, buffer, size); in UINT32_Unmarshal()
969 INT32* size) { in TPML_PCR_SELECTION_Marshal() argument
972 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_PCR_SELECTION_Marshal()
975 TPMS_PCR_SELECTION_Marshal(&source->pcrSelections[i], buffer, size); in TPML_PCR_SELECTION_Marshal()
982 INT32* size) { in TPML_PCR_SELECTION_Unmarshal() argument
985 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_PCR_SELECTION_Unmarshal()
994 TPMS_PCR_SELECTION_Unmarshal(&target->pcrSelections[i], buffer, size); in TPML_PCR_SELECTION_Unmarshal()
1004 INT32* size) { in TPMS_CREATION_DATA_Marshal() argument
1006 total_size += TPML_PCR_SELECTION_Marshal(&source->pcrSelect, buffer, size); in TPMS_CREATION_DATA_Marshal()
1007 total_size += TPM2B_DIGEST_Marshal(&source->pcrDigest, buffer, size); in TPMS_CREATION_DATA_Marshal()
1008 total_size += TPMA_LOCALITY_Marshal(&source->locality, buffer, size); in TPMS_CREATION_DATA_Marshal()
1009 total_size += TPM_ALG_ID_Marshal(&source->parentNameAlg, buffer, size); in TPMS_CREATION_DATA_Marshal()
1010 total_size += TPM2B_NAME_Marshal(&source->parentName, buffer, size); in TPMS_CREATION_DATA_Marshal()
1011 total_size += TPM2B_NAME_Marshal(&source->parentQualifiedName, buffer, size); in TPMS_CREATION_DATA_Marshal()
1012 total_size += TPM2B_DATA_Marshal(&source->outsideInfo, buffer, size); in TPMS_CREATION_DATA_Marshal()
1018 INT32* size) { in TPMS_CREATION_DATA_Unmarshal() argument
1020 result = TPML_PCR_SELECTION_Unmarshal(&target->pcrSelect, buffer, size); in TPMS_CREATION_DATA_Unmarshal()
1024 result = TPM2B_DIGEST_Unmarshal(&target->pcrDigest, buffer, size); in TPMS_CREATION_DATA_Unmarshal()
1028 result = TPMA_LOCALITY_Unmarshal(&target->locality, buffer, size); in TPMS_CREATION_DATA_Unmarshal()
1032 result = TPM_ALG_ID_Unmarshal(&target->parentNameAlg, buffer, size); in TPMS_CREATION_DATA_Unmarshal()
1036 result = TPM2B_NAME_Unmarshal(&target->parentName, buffer, size); in TPMS_CREATION_DATA_Unmarshal()
1040 result = TPM2B_NAME_Unmarshal(&target->parentQualifiedName, buffer, size); in TPMS_CREATION_DATA_Unmarshal()
1044 result = TPM2B_DATA_Unmarshal(&target->outsideInfo, buffer, size); in TPMS_CREATION_DATA_Unmarshal()
1053 INT32* size) { in TPM2B_CREATION_DATA_Marshal() argument
1055 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_CREATION_DATA_Marshal()
1057 TPMS_CREATION_DATA_Marshal(&source->t.creationData, buffer, size); in TPM2B_CREATION_DATA_Marshal()
1069 INT32* size) { in TPM2B_CREATION_DATA_Unmarshal() argument
1071 UINT32 start_size = *size; in TPM2B_CREATION_DATA_Unmarshal()
1073 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_CREATION_DATA_Unmarshal()
1077 if (target->t.size == 0) { in TPM2B_CREATION_DATA_Unmarshal()
1080 result = TPMS_CREATION_DATA_Unmarshal(&target->t.creationData, buffer, size); in TPM2B_CREATION_DATA_Unmarshal()
1084 struct_size = start_size - *size - sizeof(target->t.size); in TPM2B_CREATION_DATA_Unmarshal()
1085 if (struct_size != target->t.size) { in TPM2B_CREATION_DATA_Unmarshal()
1093 INT32* size) { in TPM2B_DIGEST_VALUES_Marshal() argument
1096 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_DIGEST_VALUES_Marshal()
1097 for (i = 0; i < source->t.size; ++i) { in TPM2B_DIGEST_VALUES_Marshal()
1098 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_DIGEST_VALUES_Marshal()
1105 INT32* size) { in TPM2B_DIGEST_VALUES_Unmarshal() argument
1108 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_DIGEST_VALUES_Unmarshal()
1112 if (target->t.size == 0) { in TPM2B_DIGEST_VALUES_Unmarshal()
1115 if (target->t.size > sizeof(TPML_DIGEST_VALUES)) { in TPM2B_DIGEST_VALUES_Unmarshal()
1118 for (i = 0; i < target->t.size; ++i) { in TPM2B_DIGEST_VALUES_Unmarshal()
1119 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_DIGEST_VALUES_Unmarshal()
1129 INT32* size) { in TPM2B_ECC_PARAMETER_Marshal() argument
1132 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ECC_PARAMETER_Marshal()
1133 for (i = 0; i < source->t.size; ++i) { in TPM2B_ECC_PARAMETER_Marshal()
1134 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_ECC_PARAMETER_Marshal()
1141 INT32* size) { in TPM2B_ECC_PARAMETER_Unmarshal() argument
1144 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_ECC_PARAMETER_Unmarshal()
1148 if (target->t.size == 0) { in TPM2B_ECC_PARAMETER_Unmarshal()
1151 if (target->t.size > MAX_ECC_KEY_BYTES) { in TPM2B_ECC_PARAMETER_Unmarshal()
1154 for (i = 0; i < target->t.size; ++i) { in TPM2B_ECC_PARAMETER_Unmarshal()
1155 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_ECC_PARAMETER_Unmarshal()
1165 INT32* size) { in TPMS_ECC_POINT_Marshal() argument
1167 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->x, buffer, size); in TPMS_ECC_POINT_Marshal()
1168 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->y, buffer, size); in TPMS_ECC_POINT_Marshal()
1174 INT32* size) { in TPMS_ECC_POINT_Unmarshal() argument
1176 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->x, buffer, size); in TPMS_ECC_POINT_Unmarshal()
1180 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->y, buffer, size); in TPMS_ECC_POINT_Unmarshal()
1189 INT32* size) { in TPM2B_ECC_POINT_Marshal() argument
1191 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ECC_POINT_Marshal()
1192 total_size += TPMS_ECC_POINT_Marshal(&source->t.point, buffer, size); in TPM2B_ECC_POINT_Marshal()
1204 INT32* size) { in TPM2B_ECC_POINT_Unmarshal() argument
1206 UINT32 start_size = *size; in TPM2B_ECC_POINT_Unmarshal()
1208 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_ECC_POINT_Unmarshal()
1212 if (target->t.size == 0) { in TPM2B_ECC_POINT_Unmarshal()
1215 result = TPMS_ECC_POINT_Unmarshal(&target->t.point, buffer, size); in TPM2B_ECC_POINT_Unmarshal()
1219 struct_size = start_size - *size - sizeof(target->t.size); in TPM2B_ECC_POINT_Unmarshal()
1220 if (struct_size != target->t.size) { in TPM2B_ECC_POINT_Unmarshal()
1228 INT32* size) { in TPM2B_ENCRYPTED_SECRET_Marshal() argument
1231 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ENCRYPTED_SECRET_Marshal()
1232 for (i = 0; i < source->t.size; ++i) { in TPM2B_ENCRYPTED_SECRET_Marshal()
1233 total_size += BYTE_Marshal(&source->t.secret[i], buffer, size); in TPM2B_ENCRYPTED_SECRET_Marshal()
1240 INT32* size) { in TPM2B_ENCRYPTED_SECRET_Unmarshal() argument
1243 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_ENCRYPTED_SECRET_Unmarshal()
1247 if (target->t.size == 0) { in TPM2B_ENCRYPTED_SECRET_Unmarshal()
1250 if (target->t.size > sizeof(TPMU_ENCRYPTED_SECRET)) { in TPM2B_ENCRYPTED_SECRET_Unmarshal()
1253 for (i = 0; i < target->t.size; ++i) { in TPM2B_ENCRYPTED_SECRET_Unmarshal()
1254 result = BYTE_Unmarshal(&target->t.secret[i], buffer, size); in TPM2B_ENCRYPTED_SECRET_Unmarshal()
1262 UINT16 TPM2B_EVENT_Marshal(TPM2B_EVENT* source, BYTE** buffer, INT32* size) { in TPM2B_EVENT_Marshal() argument
1265 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_EVENT_Marshal()
1266 for (i = 0; i < source->t.size; ++i) { in TPM2B_EVENT_Marshal()
1267 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_EVENT_Marshal()
1272 TPM_RC TPM2B_EVENT_Unmarshal(TPM2B_EVENT* target, BYTE** buffer, INT32* size) { in TPM2B_EVENT_Unmarshal() argument
1275 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_EVENT_Unmarshal()
1279 if (target->t.size == 0) { in TPM2B_EVENT_Unmarshal()
1282 if (target->t.size > 1024) { in TPM2B_EVENT_Unmarshal()
1285 for (i = 0; i < target->t.size; ++i) { in TPM2B_EVENT_Unmarshal()
1286 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_EVENT_Unmarshal()
1296 INT32* size) { in TPM2B_ID_OBJECT_Marshal() argument
1299 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ID_OBJECT_Marshal()
1300 for (i = 0; i < source->t.size; ++i) { in TPM2B_ID_OBJECT_Marshal()
1301 total_size += BYTE_Marshal(&source->t.credential[i], buffer, size); in TPM2B_ID_OBJECT_Marshal()
1308 INT32* size) { in TPM2B_ID_OBJECT_Unmarshal() argument
1311 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_ID_OBJECT_Unmarshal()
1315 if (target->t.size == 0) { in TPM2B_ID_OBJECT_Unmarshal()
1318 if (target->t.size > sizeof(_ID_OBJECT)) { in TPM2B_ID_OBJECT_Unmarshal()
1321 for (i = 0; i < target->t.size; ++i) { in TPM2B_ID_OBJECT_Unmarshal()
1322 result = BYTE_Unmarshal(&target->t.credential[i], buffer, size); in TPM2B_ID_OBJECT_Unmarshal()
1330 UINT16 TPM2B_IV_Marshal(TPM2B_IV* source, BYTE** buffer, INT32* size) { in TPM2B_IV_Marshal() argument
1333 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_IV_Marshal()
1334 for (i = 0; i < source->t.size; ++i) { in TPM2B_IV_Marshal()
1335 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_IV_Marshal()
1340 TPM_RC TPM2B_IV_Unmarshal(TPM2B_IV* target, BYTE** buffer, INT32* size) { in TPM2B_IV_Unmarshal() argument
1343 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_IV_Unmarshal()
1347 if (target->t.size == 0) { in TPM2B_IV_Unmarshal()
1350 if (target->t.size > MAX_SYM_BLOCK_SIZE) { in TPM2B_IV_Unmarshal()
1353 for (i = 0; i < target->t.size; ++i) { in TPM2B_IV_Unmarshal()
1354 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_IV_Unmarshal()
1364 INT32* size) { in TPM2B_MAX_BUFFER_Marshal() argument
1367 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_MAX_BUFFER_Marshal()
1368 for (i = 0; i < source->t.size; ++i) { in TPM2B_MAX_BUFFER_Marshal()
1369 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_MAX_BUFFER_Marshal()
1376 INT32* size) { in TPM2B_MAX_BUFFER_Unmarshal() argument
1379 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_MAX_BUFFER_Unmarshal()
1383 if (target->t.size == 0) { in TPM2B_MAX_BUFFER_Unmarshal()
1386 if (target->t.size > MAX_DIGEST_BUFFER) { in TPM2B_MAX_BUFFER_Unmarshal()
1389 for (i = 0; i < target->t.size; ++i) { in TPM2B_MAX_BUFFER_Unmarshal()
1390 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_MAX_BUFFER_Unmarshal()
1400 INT32* size) { in TPM2B_MAX_NV_BUFFER_Marshal() argument
1403 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_MAX_NV_BUFFER_Marshal()
1404 for (i = 0; i < source->t.size; ++i) { in TPM2B_MAX_NV_BUFFER_Marshal()
1405 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_MAX_NV_BUFFER_Marshal()
1412 INT32* size) { in TPM2B_MAX_NV_BUFFER_Unmarshal() argument
1415 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_MAX_NV_BUFFER_Unmarshal()
1419 if (target->t.size == 0) { in TPM2B_MAX_NV_BUFFER_Unmarshal()
1422 if (target->t.size > MAX_NV_BUFFER_SIZE) { in TPM2B_MAX_NV_BUFFER_Unmarshal()
1425 for (i = 0; i < target->t.size; ++i) { in TPM2B_MAX_NV_BUFFER_Unmarshal()
1426 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_MAX_NV_BUFFER_Unmarshal()
1434 UINT16 TPM2B_NONCE_Marshal(TPM2B_NONCE* source, BYTE** buffer, INT32* size) { in TPM2B_NONCE_Marshal() argument
1435 return TPM2B_DIGEST_Marshal(source, buffer, size); in TPM2B_NONCE_Marshal()
1438 TPM_RC TPM2B_NONCE_Unmarshal(TPM2B_NONCE* target, BYTE** buffer, INT32* size) { in TPM2B_NONCE_Unmarshal() argument
1439 return TPM2B_DIGEST_Unmarshal(target, buffer, size); in TPM2B_NONCE_Unmarshal()
1444 INT32* size) { in TPMI_RH_NV_INDEX_Marshal() argument
1445 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_NV_INDEX_Marshal()
1450 INT32* size) { in TPMI_RH_NV_INDEX_Unmarshal() argument
1453 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_NV_INDEX_Unmarshal()
1466 UINT16 TPMA_NV_Marshal(TPMA_NV* source, BYTE** buffer, INT32* size) { in TPMA_NV_Marshal() argument
1467 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPMA_NV_Marshal()
1470 TPM_RC TPMA_NV_Unmarshal(TPMA_NV* target, BYTE** buffer, INT32* size) { in TPMA_NV_Unmarshal() argument
1472 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPMA_NV_Unmarshal()
1487 INT32* size) { in TPMS_NV_PUBLIC_Marshal() argument
1489 total_size += TPMI_RH_NV_INDEX_Marshal(&source->nvIndex, buffer, size); in TPMS_NV_PUBLIC_Marshal()
1490 total_size += TPMI_ALG_HASH_Marshal(&source->nameAlg, buffer, size); in TPMS_NV_PUBLIC_Marshal()
1491 total_size += TPMA_NV_Marshal(&source->attributes, buffer, size); in TPMS_NV_PUBLIC_Marshal()
1492 total_size += TPM2B_DIGEST_Marshal(&source->authPolicy, buffer, size); in TPMS_NV_PUBLIC_Marshal()
1493 total_size += UINT16_Marshal(&source->dataSize, buffer, size); in TPMS_NV_PUBLIC_Marshal()
1499 INT32* size) { in TPMS_NV_PUBLIC_Unmarshal() argument
1501 result = TPMI_RH_NV_INDEX_Unmarshal(&target->nvIndex, buffer, size); in TPMS_NV_PUBLIC_Unmarshal()
1505 result = TPMI_ALG_HASH_Unmarshal(&target->nameAlg, buffer, size, FALSE); in TPMS_NV_PUBLIC_Unmarshal()
1509 result = TPMA_NV_Unmarshal(&target->attributes, buffer, size); in TPMS_NV_PUBLIC_Unmarshal()
1513 result = TPM2B_DIGEST_Unmarshal(&target->authPolicy, buffer, size); in TPMS_NV_PUBLIC_Unmarshal()
1517 result = UINT16_Unmarshal(&target->dataSize, buffer, size); in TPMS_NV_PUBLIC_Unmarshal()
1529 INT32* size) { in TPM2B_NV_PUBLIC_Marshal() argument
1531 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_NV_PUBLIC_Marshal()
1532 total_size += TPMS_NV_PUBLIC_Marshal(&source->t.nvPublic, buffer, size); in TPM2B_NV_PUBLIC_Marshal()
1544 INT32* size) { in TPM2B_NV_PUBLIC_Unmarshal() argument
1546 UINT32 start_size = *size; in TPM2B_NV_PUBLIC_Unmarshal()
1548 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_NV_PUBLIC_Unmarshal()
1552 if (target->t.size == 0) { in TPM2B_NV_PUBLIC_Unmarshal()
1555 result = TPMS_NV_PUBLIC_Unmarshal(&target->t.nvPublic, buffer, size); in TPM2B_NV_PUBLIC_Unmarshal()
1559 struct_size = start_size - *size - sizeof(target->t.size); in TPM2B_NV_PUBLIC_Unmarshal()
1560 if (struct_size != target->t.size) { in TPM2B_NV_PUBLIC_Unmarshal()
1568 INT32* size) { in TPM2B_OPERAND_Marshal() argument
1569 return TPM2B_DIGEST_Marshal(source, buffer, size); in TPM2B_OPERAND_Marshal()
1574 INT32* size) { in TPM2B_OPERAND_Unmarshal() argument
1575 return TPM2B_DIGEST_Unmarshal(target, buffer, size); in TPM2B_OPERAND_Unmarshal()
1580 INT32* size) { in TPM2B_PRIVATE_Marshal() argument
1583 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PRIVATE_Marshal()
1584 for (i = 0; i < source->t.size; ++i) { in TPM2B_PRIVATE_Marshal()
1585 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PRIVATE_Marshal()
1592 INT32* size) { in TPM2B_PRIVATE_Unmarshal() argument
1595 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_PRIVATE_Unmarshal()
1599 if (target->t.size == 0) { in TPM2B_PRIVATE_Unmarshal()
1602 if (target->t.size > sizeof(_PRIVATE)) { in TPM2B_PRIVATE_Unmarshal()
1605 for (i = 0; i < target->t.size; ++i) { in TPM2B_PRIVATE_Unmarshal()
1606 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_PRIVATE_Unmarshal()
1616 INT32* size) { in TPM2B_PRIVATE_KEY_RSA_Marshal() argument
1619 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PRIVATE_KEY_RSA_Marshal()
1620 for (i = 0; i < source->t.size; ++i) { in TPM2B_PRIVATE_KEY_RSA_Marshal()
1621 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PRIVATE_KEY_RSA_Marshal()
1628 INT32* size) { in TPM2B_PRIVATE_KEY_RSA_Unmarshal() argument
1631 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_PRIVATE_KEY_RSA_Unmarshal()
1635 if (target->t.size == 0) { in TPM2B_PRIVATE_KEY_RSA_Unmarshal()
1638 if (target->t.size > MAX_RSA_KEY_BYTES / 2) { in TPM2B_PRIVATE_KEY_RSA_Unmarshal()
1641 for (i = 0; i < target->t.size; ++i) { in TPM2B_PRIVATE_KEY_RSA_Unmarshal()
1642 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_PRIVATE_KEY_RSA_Unmarshal()
1653 INT32* size) { in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal() argument
1656 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal()
1657 for (i = 0; i < source->t.size; ++i) { in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal()
1658 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal()
1666 INT32* size) { in TPM2B_PRIVATE_VENDOR_SPECIFIC_Unmarshal() argument
1669 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_PRIVATE_VENDOR_SPECIFIC_Unmarshal()
1673 if (target->t.size == 0) { in TPM2B_PRIVATE_VENDOR_SPECIFIC_Unmarshal()
1676 if (target->t.size > PRIVATE_VENDOR_SPECIFIC_BYTES) { in TPM2B_PRIVATE_VENDOR_SPECIFIC_Unmarshal()
1679 for (i = 0; i < target->t.size; ++i) { in TPM2B_PRIVATE_VENDOR_SPECIFIC_Unmarshal()
1680 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_PRIVATE_VENDOR_SPECIFIC_Unmarshal()
1688 UINT16 TPMA_OBJECT_Marshal(TPMA_OBJECT* source, BYTE** buffer, INT32* size) { in TPMA_OBJECT_Marshal() argument
1689 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPMA_OBJECT_Marshal()
1692 TPM_RC TPMA_OBJECT_Unmarshal(TPMA_OBJECT* target, BYTE** buffer, INT32* size) { in TPMA_OBJECT_Unmarshal() argument
1694 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPMA_OBJECT_Unmarshal()
1718 INT32* size) { in TPMI_ALG_PUBLIC_Marshal() argument
1719 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_PUBLIC_Marshal()
1724 INT32* size) { in TPMI_ALG_PUBLIC_Unmarshal() argument
1727 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_PUBLIC_Unmarshal()
1755 INT32* size) { in TPM2B_PUBLIC_KEY_RSA_Marshal() argument
1758 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PUBLIC_KEY_RSA_Marshal()
1759 for (i = 0; i < source->t.size; ++i) { in TPM2B_PUBLIC_KEY_RSA_Marshal()
1760 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PUBLIC_KEY_RSA_Marshal()
1767 INT32* size) { in TPM2B_PUBLIC_KEY_RSA_Unmarshal() argument
1770 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_PUBLIC_KEY_RSA_Unmarshal()
1774 if (target->t.size == 0) { in TPM2B_PUBLIC_KEY_RSA_Unmarshal()
1777 if (target->t.size > MAX_RSA_KEY_BYTES) { in TPM2B_PUBLIC_KEY_RSA_Unmarshal()
1780 for (i = 0; i < target->t.size; ++i) { in TPM2B_PUBLIC_KEY_RSA_Unmarshal()
1781 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_PUBLIC_KEY_RSA_Unmarshal()
1791 INT32* size, in TPMU_PUBLIC_ID_Marshal() argument
1797 size); in TPMU_PUBLIC_ID_Marshal()
1801 return TPM2B_DIGEST_Marshal((TPM2B_DIGEST*)&source->sym, buffer, size); in TPMU_PUBLIC_ID_Marshal()
1806 buffer, size); in TPMU_PUBLIC_ID_Marshal()
1811 size); in TPMU_PUBLIC_ID_Marshal()
1819 INT32* size, in TPMU_PUBLIC_ID_Unmarshal() argument
1825 size); in TPMU_PUBLIC_ID_Unmarshal()
1829 return TPM2B_DIGEST_Unmarshal((TPM2B_DIGEST*)&target->sym, buffer, size); in TPMU_PUBLIC_ID_Unmarshal()
1834 buffer, size); in TPMU_PUBLIC_ID_Unmarshal()
1839 size); in TPMU_PUBLIC_ID_Unmarshal()
1845 UINT16 TPM_KEY_BITS_Marshal(TPM_KEY_BITS* source, BYTE** buffer, INT32* size) { in TPM_KEY_BITS_Marshal() argument
1846 return uint16_t_Marshal(source, buffer, size); in TPM_KEY_BITS_Marshal()
1851 INT32* size) { in TPM_KEY_BITS_Unmarshal() argument
1852 return uint16_t_Unmarshal(target, buffer, size); in TPM_KEY_BITS_Unmarshal()
1857 INT32* size) { in TPMI_AES_KEY_BITS_Marshal() argument
1858 return TPM_KEY_BITS_Marshal(source, buffer, size); in TPMI_AES_KEY_BITS_Marshal()
1863 INT32* size) { in TPMI_AES_KEY_BITS_Unmarshal() argument
1869 result = TPM_KEY_BITS_Unmarshal(target, buffer, size); in TPMI_AES_KEY_BITS_Unmarshal()
1887 INT32* size) { in TPMI_SM4_KEY_BITS_Marshal() argument
1888 return TPM_KEY_BITS_Marshal(source, buffer, size); in TPMI_SM4_KEY_BITS_Marshal()
1893 INT32* size) { in TPMI_SM4_KEY_BITS_Unmarshal() argument
1899 result = TPM_KEY_BITS_Unmarshal(target, buffer, size); in TPMI_SM4_KEY_BITS_Unmarshal()
1917 INT32* size) { in TPMI_CAMELLIA_KEY_BITS_Marshal() argument
1918 return TPM_KEY_BITS_Marshal(source, buffer, size); in TPMI_CAMELLIA_KEY_BITS_Marshal()
1923 INT32* size) { in TPMI_CAMELLIA_KEY_BITS_Unmarshal() argument
1929 result = TPM_KEY_BITS_Unmarshal(target, buffer, size); in TPMI_CAMELLIA_KEY_BITS_Unmarshal()
1947 INT32* size, in TPMU_SYM_KEY_BITS_Marshal() argument
1953 size); in TPMU_SYM_KEY_BITS_Marshal()
1958 size); in TPMU_SYM_KEY_BITS_Marshal()
1963 (TPMI_CAMELLIA_KEY_BITS*)&source->camellia, buffer, size); in TPMU_SYM_KEY_BITS_Marshal()
1967 return TPMI_ALG_HASH_Marshal((TPMI_ALG_HASH*)&source->xor_, buffer, size); in TPMU_SYM_KEY_BITS_Marshal()
1979 INT32* size, in TPMU_SYM_KEY_BITS_Unmarshal() argument
1985 buffer, size); in TPMU_SYM_KEY_BITS_Unmarshal()
1990 buffer, size); in TPMU_SYM_KEY_BITS_Unmarshal()
1995 (TPMI_CAMELLIA_KEY_BITS*)&target->camellia, buffer, size); in TPMU_SYM_KEY_BITS_Unmarshal()
1999 return TPMI_ALG_HASH_Unmarshal(&target->xor_, buffer, size, FALSE); in TPMU_SYM_KEY_BITS_Unmarshal()
2011 INT32* size) { in TPMI_ALG_SYM_MODE_Marshal() argument
2012 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_SYM_MODE_Marshal()
2017 INT32* size, in TPMI_ALG_SYM_MODE_Unmarshal() argument
2021 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_SYM_MODE_Unmarshal()
2055 INT32* size, in TPMU_SYM_MODE_Marshal() argument
2061 size); in TPMU_SYM_MODE_Marshal()
2066 size); in TPMU_SYM_MODE_Marshal()
2071 buffer, size); in TPMU_SYM_MODE_Marshal()
2087 INT32* size, in TPMU_SYM_MODE_Unmarshal() argument
2092 return TPMI_ALG_SYM_MODE_Unmarshal(&target->aes, buffer, size, FALSE); in TPMU_SYM_MODE_Unmarshal()
2096 return TPMI_ALG_SYM_MODE_Unmarshal(&target->sm4, buffer, size, FALSE); in TPMU_SYM_MODE_Unmarshal()
2100 return TPMI_ALG_SYM_MODE_Unmarshal(&target->camellia, buffer, size, in TPMU_SYM_MODE_Unmarshal()
2117 INT32* size) { in TPMI_ALG_SYM_OBJECT_Marshal() argument
2118 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_SYM_OBJECT_Marshal()
2123 INT32* size, in TPMI_ALG_SYM_OBJECT_Unmarshal() argument
2127 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_SYM_OBJECT_Unmarshal()
2155 INT32* size) { in TPMT_SYM_DEF_OBJECT_Marshal() argument
2157 total_size += TPMI_ALG_SYM_OBJECT_Marshal(&source->algorithm, buffer, size); in TPMT_SYM_DEF_OBJECT_Marshal()
2158 total_size += TPMU_SYM_KEY_BITS_Marshal(&source->keyBits, buffer, size, in TPMT_SYM_DEF_OBJECT_Marshal()
2161 TPMU_SYM_MODE_Marshal(&source->mode, buffer, size, source->algorithm); in TPMT_SYM_DEF_OBJECT_Marshal()
2167 INT32* size) { in TPMT_SYM_DEF_OBJECT_Unmarshal() argument
2170 TPMI_ALG_SYM_OBJECT_Unmarshal(&target->algorithm, buffer, size, TRUE); in TPMT_SYM_DEF_OBJECT_Unmarshal()
2174 result = TPMU_SYM_KEY_BITS_Unmarshal(&target->keyBits, buffer, size, in TPMT_SYM_DEF_OBJECT_Unmarshal()
2180 TPMU_SYM_MODE_Unmarshal(&target->mode, buffer, size, target->algorithm); in TPMT_SYM_DEF_OBJECT_Unmarshal()
2189 INT32* size) { in TPMI_ALG_RSA_SCHEME_Marshal() argument
2190 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_RSA_SCHEME_Marshal()
2195 INT32* size, in TPMI_ALG_RSA_SCHEME_Unmarshal() argument
2199 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_RSA_SCHEME_Unmarshal()
2230 INT32* size) { in TPMS_SCHEME_HASH_Marshal() argument
2232 total_size += TPMI_ALG_HASH_Marshal(&source->hashAlg, buffer, size); in TPMS_SCHEME_HASH_Marshal()
2238 INT32* size) { in TPMS_SCHEME_HASH_Unmarshal() argument
2240 result = TPMI_ALG_HASH_Unmarshal(&target->hashAlg, buffer, size, FALSE); in TPMS_SCHEME_HASH_Unmarshal()
2249 INT32* size) { in TPMS_SIG_SCHEME_RSAPSS_Marshal() argument
2250 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SIG_SCHEME_RSAPSS_Marshal()
2255 INT32* size) { in TPMS_SIG_SCHEME_RSAPSS_Unmarshal() argument
2256 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SIG_SCHEME_RSAPSS_Unmarshal()
2261 INT32* size) { in TPMS_SIG_SCHEME_SM2_Marshal() argument
2262 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SIG_SCHEME_SM2_Marshal()
2267 INT32* size) { in TPMS_SIG_SCHEME_SM2_Unmarshal() argument
2268 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SIG_SCHEME_SM2_Unmarshal()
2273 INT32* size) { in TPMS_SIG_SCHEME_ECSCHNORR_Marshal() argument
2274 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SIG_SCHEME_ECSCHNORR_Marshal()
2279 INT32* size) { in TPMS_SIG_SCHEME_ECSCHNORR_Unmarshal() argument
2280 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SIG_SCHEME_ECSCHNORR_Unmarshal()
2285 INT32* size) { in TPMS_SCHEME_ECDAA_Marshal() argument
2287 total_size += TPMI_ALG_HASH_Marshal(&source->hashAlg, buffer, size); in TPMS_SCHEME_ECDAA_Marshal()
2288 total_size += UINT16_Marshal(&source->count, buffer, size); in TPMS_SCHEME_ECDAA_Marshal()
2294 INT32* size) { in TPMS_SCHEME_ECDAA_Unmarshal() argument
2296 result = TPMI_ALG_HASH_Unmarshal(&target->hashAlg, buffer, size, FALSE); in TPMS_SCHEME_ECDAA_Unmarshal()
2300 result = UINT16_Unmarshal(&target->count, buffer, size); in TPMS_SCHEME_ECDAA_Unmarshal()
2309 INT32* size) { in TPMS_SIG_SCHEME_ECDAA_Marshal() argument
2310 return TPMS_SCHEME_ECDAA_Marshal(source, buffer, size); in TPMS_SIG_SCHEME_ECDAA_Marshal()
2315 INT32* size) { in TPMS_SIG_SCHEME_ECDAA_Unmarshal() argument
2316 return TPMS_SCHEME_ECDAA_Unmarshal(target, buffer, size); in TPMS_SIG_SCHEME_ECDAA_Unmarshal()
2321 INT32* size) { in TPMS_KEY_SCHEME_ECDH_Marshal() argument
2322 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_KEY_SCHEME_ECDH_Marshal()
2327 INT32* size) { in TPMS_KEY_SCHEME_ECDH_Unmarshal() argument
2328 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_KEY_SCHEME_ECDH_Unmarshal()
2333 INT32* size) { in TPMS_KEY_SCHEME_ECMQV_Marshal() argument
2334 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_KEY_SCHEME_ECMQV_Marshal()
2339 INT32* size) { in TPMS_KEY_SCHEME_ECMQV_Unmarshal() argument
2340 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_KEY_SCHEME_ECMQV_Unmarshal()
2345 INT32* size) { in TPMS_SIG_SCHEME_RSASSA_Marshal() argument
2346 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SIG_SCHEME_RSASSA_Marshal()
2351 INT32* size) { in TPMS_SIG_SCHEME_RSASSA_Unmarshal() argument
2353 return TPMI_ALG_HASH_Unmarshal(&target->hashAlg, buffer, size, TRUE); in TPMS_SIG_SCHEME_RSASSA_Unmarshal()
2355 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SIG_SCHEME_RSASSA_Unmarshal()
2361 INT32* size) { in TPMS_ENC_SCHEME_OAEP_Marshal() argument
2362 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_ENC_SCHEME_OAEP_Marshal()
2367 INT32* size) { in TPMS_ENC_SCHEME_OAEP_Unmarshal() argument
2368 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_ENC_SCHEME_OAEP_Unmarshal()
2371 UINT16 TPMS_EMPTY_Marshal(TPMS_EMPTY* source, BYTE** buffer, INT32* size) { in TPMS_EMPTY_Marshal() argument
2376 TPM_RC TPMS_EMPTY_Unmarshal(TPMS_EMPTY* target, BYTE** buffer, INT32* size) { in TPMS_EMPTY_Unmarshal() argument
2385 INT32* size) { in TPMS_ENC_SCHEME_RSAES_Marshal() argument
2386 return TPMS_EMPTY_Marshal(source, buffer, size); in TPMS_ENC_SCHEME_RSAES_Marshal()
2391 INT32* size) { in TPMS_ENC_SCHEME_RSAES_Unmarshal() argument
2392 return TPMS_EMPTY_Unmarshal(target, buffer, size); in TPMS_ENC_SCHEME_RSAES_Unmarshal()
2397 INT32* size) { in TPMS_SIG_SCHEME_ECDSA_Marshal() argument
2398 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SIG_SCHEME_ECDSA_Marshal()
2403 INT32* size) { in TPMS_SIG_SCHEME_ECDSA_Unmarshal() argument
2404 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SIG_SCHEME_ECDSA_Unmarshal()
2409 INT32* size, in TPMU_ASYM_SCHEME_Marshal() argument
2415 buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2420 (TPMS_KEY_SCHEME_ECMQV*)&source->ecmqv, buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2425 (TPMS_SIG_SCHEME_RSASSA*)&source->rsassa, buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2430 (TPMS_SIG_SCHEME_RSAPSS*)&source->rsapss, buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2435 (TPMS_SIG_SCHEME_ECDSA*)&source->ecdsa, buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2440 (TPMS_SIG_SCHEME_ECDAA*)&source->ecdaa, buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2445 buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2450 (TPMS_SIG_SCHEME_ECSCHNORR*)&source->ecschnorr, buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2455 (TPMS_ENC_SCHEME_RSAES*)&source->rsaes, buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2460 buffer, size); in TPMU_ASYM_SCHEME_Marshal()
2472 INT32* size, in TPMU_ASYM_SCHEME_Unmarshal() argument
2478 (TPMS_KEY_SCHEME_ECDH*)&target->ecdh, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2483 (TPMS_KEY_SCHEME_ECMQV*)&target->ecmqv, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2488 (TPMS_SIG_SCHEME_RSASSA*)&target->rsassa, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2493 (TPMS_SIG_SCHEME_RSAPSS*)&target->rsapss, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2498 (TPMS_SIG_SCHEME_ECDSA*)&target->ecdsa, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2503 (TPMS_SIG_SCHEME_ECDAA*)&target->ecdaa, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2508 buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2513 (TPMS_SIG_SCHEME_ECSCHNORR*)&target->ecschnorr, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2518 (TPMS_ENC_SCHEME_RSAES*)&target->rsaes, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2523 (TPMS_ENC_SCHEME_OAEP*)&target->oaep, buffer, size); in TPMU_ASYM_SCHEME_Unmarshal()
2535 INT32* size) { in TPMT_RSA_SCHEME_Marshal() argument
2537 total_size += TPMI_ALG_RSA_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_RSA_SCHEME_Marshal()
2539 TPMU_ASYM_SCHEME_Marshal(&source->details, buffer, size, source->scheme); in TPMT_RSA_SCHEME_Marshal()
2545 INT32* size) { in TPMT_RSA_SCHEME_Unmarshal() argument
2547 result = TPMI_ALG_RSA_SCHEME_Unmarshal(&target->scheme, buffer, size, TRUE); in TPMT_RSA_SCHEME_Unmarshal()
2551 result = TPMU_ASYM_SCHEME_Unmarshal(&target->details, buffer, size, in TPMT_RSA_SCHEME_Unmarshal()
2561 INT32* size) { in TPMI_RSA_KEY_BITS_Marshal() argument
2562 return uint16_t_Marshal(source, buffer, size); in TPMI_RSA_KEY_BITS_Marshal()
2567 INT32* size) { in TPMI_RSA_KEY_BITS_Unmarshal() argument
2573 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_RSA_KEY_BITS_Unmarshal()
2591 INT32* size) { in TPMS_RSA_PARMS_Marshal() argument
2593 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->symmetric, buffer, size); in TPMS_RSA_PARMS_Marshal()
2594 total_size += TPMT_RSA_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_RSA_PARMS_Marshal()
2595 total_size += TPMI_RSA_KEY_BITS_Marshal(&source->keyBits, buffer, size); in TPMS_RSA_PARMS_Marshal()
2596 total_size += UINT32_Marshal(&source->exponent, buffer, size); in TPMS_RSA_PARMS_Marshal()
2602 INT32* size) { in TPMS_RSA_PARMS_Unmarshal() argument
2604 result = TPMT_SYM_DEF_OBJECT_Unmarshal(&target->symmetric, buffer, size); in TPMS_RSA_PARMS_Unmarshal()
2608 result = TPMT_RSA_SCHEME_Unmarshal(&target->scheme, buffer, size); in TPMS_RSA_PARMS_Unmarshal()
2612 result = TPMI_RSA_KEY_BITS_Unmarshal(&target->keyBits, buffer, size); in TPMS_RSA_PARMS_Unmarshal()
2616 result = UINT32_Unmarshal(&target->exponent, buffer, size); in TPMS_RSA_PARMS_Unmarshal()
2625 INT32* size) { in TPMS_SYMCIPHER_PARMS_Marshal() argument
2627 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->sym, buffer, size); in TPMS_SYMCIPHER_PARMS_Marshal()
2633 INT32* size) { in TPMS_SYMCIPHER_PARMS_Unmarshal() argument
2635 result = TPMT_SYM_DEF_OBJECT_Unmarshal(&target->sym, buffer, size); in TPMS_SYMCIPHER_PARMS_Unmarshal()
2644 INT32* size) { in TPMI_ALG_ASYM_SCHEME_Marshal() argument
2645 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_ASYM_SCHEME_Marshal()
2650 INT32* size, in TPMI_ALG_ASYM_SCHEME_Unmarshal() argument
2654 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_ASYM_SCHEME_Unmarshal()
2703 INT32* size) { in TPMT_ASYM_SCHEME_Marshal() argument
2705 total_size += TPMI_ALG_ASYM_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_ASYM_SCHEME_Marshal()
2707 TPMU_ASYM_SCHEME_Marshal(&source->details, buffer, size, source->scheme); in TPMT_ASYM_SCHEME_Marshal()
2713 INT32* size) { in TPMT_ASYM_SCHEME_Unmarshal() argument
2715 result = TPMI_ALG_ASYM_SCHEME_Unmarshal(&target->scheme, buffer, size, TRUE); in TPMT_ASYM_SCHEME_Unmarshal()
2719 result = TPMU_ASYM_SCHEME_Unmarshal(&target->details, buffer, size, in TPMT_ASYM_SCHEME_Unmarshal()
2729 INT32* size) { in TPMS_ASYM_PARMS_Marshal() argument
2731 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->symmetric, buffer, size); in TPMS_ASYM_PARMS_Marshal()
2732 total_size += TPMT_ASYM_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_ASYM_PARMS_Marshal()
2738 INT32* size) { in TPMS_ASYM_PARMS_Unmarshal() argument
2740 result = TPMT_SYM_DEF_OBJECT_Unmarshal(&target->symmetric, buffer, size); in TPMS_ASYM_PARMS_Unmarshal()
2744 result = TPMT_ASYM_SCHEME_Unmarshal(&target->scheme, buffer, size); in TPMS_ASYM_PARMS_Unmarshal()
2751 UINT16 TPMI_ALG_KDF_Marshal(TPMI_ALG_KDF* source, BYTE** buffer, INT32* size) { in TPMI_ALG_KDF_Marshal() argument
2752 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_KDF_Marshal()
2757 INT32* size, in TPMI_ALG_KDF_Unmarshal() argument
2761 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_KDF_Unmarshal()
2792 INT32* size) { in TPMS_SCHEME_KDF1_SP800_108_Marshal() argument
2793 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SCHEME_KDF1_SP800_108_Marshal()
2798 INT32* size) { in TPMS_SCHEME_KDF1_SP800_108_Unmarshal() argument
2799 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SCHEME_KDF1_SP800_108_Unmarshal()
2804 INT32* size) { in TPMS_SCHEME_KDF2_Marshal() argument
2805 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SCHEME_KDF2_Marshal()
2810 INT32* size) { in TPMS_SCHEME_KDF2_Unmarshal() argument
2811 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SCHEME_KDF2_Unmarshal()
2816 INT32* size) { in TPMS_SCHEME_KDF1_SP800_56A_Marshal() argument
2817 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SCHEME_KDF1_SP800_56A_Marshal()
2822 INT32* size) { in TPMS_SCHEME_KDF1_SP800_56A_Unmarshal() argument
2823 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SCHEME_KDF1_SP800_56A_Unmarshal()
2828 INT32* size) { in TPMS_SCHEME_MGF1_Marshal() argument
2829 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SCHEME_MGF1_Marshal()
2834 INT32* size) { in TPMS_SCHEME_MGF1_Unmarshal() argument
2835 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SCHEME_MGF1_Unmarshal()
2840 INT32* size, in TPMU_KDF_SCHEME_Marshal() argument
2846 size); in TPMU_KDF_SCHEME_Marshal()
2851 (TPMS_SCHEME_KDF1_SP800_56A*)&source->kdf1_sp800_56a, buffer, size); in TPMU_KDF_SCHEME_Marshal()
2856 size); in TPMU_KDF_SCHEME_Marshal()
2861 (TPMS_SCHEME_KDF1_SP800_108*)&source->kdf1_sp800_108, buffer, size); in TPMU_KDF_SCHEME_Marshal()
2873 INT32* size, in TPMU_KDF_SCHEME_Unmarshal() argument
2879 buffer, size); in TPMU_KDF_SCHEME_Unmarshal()
2884 (TPMS_SCHEME_KDF1_SP800_56A*)&target->kdf1_sp800_56a, buffer, size); in TPMU_KDF_SCHEME_Unmarshal()
2889 buffer, size); in TPMU_KDF_SCHEME_Unmarshal()
2894 (TPMS_SCHEME_KDF1_SP800_108*)&target->kdf1_sp800_108, buffer, size); in TPMU_KDF_SCHEME_Unmarshal()
2906 INT32* size) { in TPMT_KDF_SCHEME_Marshal() argument
2908 total_size += TPMI_ALG_KDF_Marshal(&source->scheme, buffer, size); in TPMT_KDF_SCHEME_Marshal()
2910 TPMU_KDF_SCHEME_Marshal(&source->details, buffer, size, source->scheme); in TPMT_KDF_SCHEME_Marshal()
2916 INT32* size) { in TPMT_KDF_SCHEME_Unmarshal() argument
2918 result = TPMI_ALG_KDF_Unmarshal(&target->scheme, buffer, size, TRUE); in TPMT_KDF_SCHEME_Unmarshal()
2923 TPMU_KDF_SCHEME_Unmarshal(&target->details, buffer, size, target->scheme); in TPMT_KDF_SCHEME_Unmarshal()
2932 INT32* size) { in TPMI_ALG_ECC_SCHEME_Marshal() argument
2933 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_ECC_SCHEME_Marshal()
2938 INT32* size, in TPMI_ALG_ECC_SCHEME_Unmarshal() argument
2942 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_ECC_SCHEME_Unmarshal()
2979 INT32* size) { in TPMT_ECC_SCHEME_Marshal() argument
2981 total_size += TPMI_ALG_ECC_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_ECC_SCHEME_Marshal()
2983 TPMU_ASYM_SCHEME_Marshal(&source->details, buffer, size, source->scheme); in TPMT_ECC_SCHEME_Marshal()
2989 INT32* size) { in TPMT_ECC_SCHEME_Unmarshal() argument
2991 result = TPMI_ALG_ECC_SCHEME_Unmarshal(&target->scheme, buffer, size, TRUE); in TPMT_ECC_SCHEME_Unmarshal()
2995 result = TPMU_ASYM_SCHEME_Unmarshal(&target->details, buffer, size, in TPMT_ECC_SCHEME_Unmarshal()
3005 INT32* size) { in TPMI_ECC_CURVE_Marshal() argument
3006 return uint16_t_Marshal(source, buffer, size); in TPMI_ECC_CURVE_Marshal()
3011 INT32* size) { in TPMI_ECC_CURVE_Unmarshal() argument
3017 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ECC_CURVE_Unmarshal()
3035 INT32* size) { in TPMS_ECC_PARMS_Marshal() argument
3037 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->symmetric, buffer, size); in TPMS_ECC_PARMS_Marshal()
3038 total_size += TPMT_ECC_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_ECC_PARMS_Marshal()
3039 total_size += TPMI_ECC_CURVE_Marshal(&source->curveID, buffer, size); in TPMS_ECC_PARMS_Marshal()
3040 total_size += TPMT_KDF_SCHEME_Marshal(&source->kdf, buffer, size); in TPMS_ECC_PARMS_Marshal()
3046 INT32* size) { in TPMS_ECC_PARMS_Unmarshal() argument
3048 result = TPMT_SYM_DEF_OBJECT_Unmarshal(&target->symmetric, buffer, size); in TPMS_ECC_PARMS_Unmarshal()
3052 result = TPMT_ECC_SCHEME_Unmarshal(&target->scheme, buffer, size); in TPMS_ECC_PARMS_Unmarshal()
3056 result = TPMI_ECC_CURVE_Unmarshal(&target->curveID, buffer, size); in TPMS_ECC_PARMS_Unmarshal()
3060 result = TPMT_KDF_SCHEME_Unmarshal(&target->kdf, buffer, size); in TPMS_ECC_PARMS_Unmarshal()
3069 INT32* size) { in TPMI_ALG_KEYEDHASH_SCHEME_Marshal() argument
3070 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_KEYEDHASH_SCHEME_Marshal()
3075 INT32* size, in TPMI_ALG_KEYEDHASH_SCHEME_Unmarshal() argument
3079 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_KEYEDHASH_SCHEME_Unmarshal()
3104 INT32* size) { in TPMS_SCHEME_HMAC_Marshal() argument
3105 return TPMS_SCHEME_HASH_Marshal(source, buffer, size); in TPMS_SCHEME_HMAC_Marshal()
3110 INT32* size) { in TPMS_SCHEME_HMAC_Unmarshal() argument
3111 return TPMS_SCHEME_HASH_Unmarshal(target, buffer, size); in TPMS_SCHEME_HMAC_Unmarshal()
3116 INT32* size) { in TPMS_SCHEME_XOR_Marshal() argument
3118 total_size += TPMI_ALG_HASH_Marshal(&source->hashAlg, buffer, size); in TPMS_SCHEME_XOR_Marshal()
3119 total_size += TPMI_ALG_KDF_Marshal(&source->kdf, buffer, size); in TPMS_SCHEME_XOR_Marshal()
3125 INT32* size) { in TPMS_SCHEME_XOR_Unmarshal() argument
3127 result = TPMI_ALG_HASH_Unmarshal(&target->hashAlg, buffer, size, TRUE); in TPMS_SCHEME_XOR_Unmarshal()
3131 result = TPMI_ALG_KDF_Unmarshal(&target->kdf, buffer, size, FALSE); in TPMS_SCHEME_XOR_Unmarshal()
3140 INT32* size, in TPMU_SCHEME_KEYEDHASH_Marshal() argument
3146 size); in TPMU_SCHEME_KEYEDHASH_Marshal()
3151 size); in TPMU_SCHEME_KEYEDHASH_Marshal()
3163 INT32* size, in TPMU_SCHEME_KEYEDHASH_Unmarshal() argument
3169 buffer, size); in TPMU_SCHEME_KEYEDHASH_Unmarshal()
3174 size); in TPMU_SCHEME_KEYEDHASH_Unmarshal()
3186 INT32* size) { in TPMT_KEYEDHASH_SCHEME_Marshal() argument
3189 TPMI_ALG_KEYEDHASH_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_KEYEDHASH_SCHEME_Marshal()
3190 total_size += TPMU_SCHEME_KEYEDHASH_Marshal(&source->details, buffer, size, in TPMT_KEYEDHASH_SCHEME_Marshal()
3197 INT32* size) { in TPMT_KEYEDHASH_SCHEME_Unmarshal() argument
3200 TPMI_ALG_KEYEDHASH_SCHEME_Unmarshal(&target->scheme, buffer, size, TRUE); in TPMT_KEYEDHASH_SCHEME_Unmarshal()
3204 result = TPMU_SCHEME_KEYEDHASH_Unmarshal(&target->details, buffer, size, in TPMT_KEYEDHASH_SCHEME_Unmarshal()
3214 INT32* size) { in TPMS_KEYEDHASH_PARMS_Marshal() argument
3216 total_size += TPMT_KEYEDHASH_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_KEYEDHASH_PARMS_Marshal()
3222 INT32* size) { in TPMS_KEYEDHASH_PARMS_Unmarshal() argument
3224 result = TPMT_KEYEDHASH_SCHEME_Unmarshal(&target->scheme, buffer, size); in TPMS_KEYEDHASH_PARMS_Unmarshal()
3233 INT32* size, in TPMU_PUBLIC_PARMS_Marshal() argument
3239 (TPMS_KEYEDHASH_PARMS*)&source->keyedHashDetail, buffer, size); in TPMU_PUBLIC_PARMS_Marshal()
3244 (TPMS_SYMCIPHER_PARMS*)&source->symDetail, buffer, size); in TPMU_PUBLIC_PARMS_Marshal()
3249 size); in TPMU_PUBLIC_PARMS_Marshal()
3254 size); in TPMU_PUBLIC_PARMS_Marshal()
3262 INT32* size, in TPMU_PUBLIC_PARMS_Unmarshal() argument
3268 (TPMS_KEYEDHASH_PARMS*)&target->keyedHashDetail, buffer, size); in TPMU_PUBLIC_PARMS_Unmarshal()
3273 (TPMS_SYMCIPHER_PARMS*)&target->symDetail, buffer, size); in TPMU_PUBLIC_PARMS_Unmarshal()
3278 buffer, size); in TPMU_PUBLIC_PARMS_Unmarshal()
3283 buffer, size); in TPMU_PUBLIC_PARMS_Unmarshal()
3289 UINT16 TPMT_PUBLIC_Marshal(TPMT_PUBLIC* source, BYTE** buffer, INT32* size) { in TPMT_PUBLIC_Marshal() argument
3291 total_size += TPMI_ALG_PUBLIC_Marshal(&source->type, buffer, size); in TPMT_PUBLIC_Marshal()
3292 total_size += TPMI_ALG_HASH_Marshal(&source->nameAlg, buffer, size); in TPMT_PUBLIC_Marshal()
3293 total_size += TPMA_OBJECT_Marshal(&source->objectAttributes, buffer, size); in TPMT_PUBLIC_Marshal()
3294 total_size += TPM2B_DIGEST_Marshal(&source->authPolicy, buffer, size); in TPMT_PUBLIC_Marshal()
3295 total_size += TPMU_PUBLIC_PARMS_Marshal(&source->parameters, buffer, size, in TPMT_PUBLIC_Marshal()
3298 TPMU_PUBLIC_ID_Marshal(&source->unique, buffer, size, source->type); in TPMT_PUBLIC_Marshal()
3302 TPM_RC TPMT_PUBLIC_Unmarshal(TPMT_PUBLIC* target, BYTE** buffer, INT32* size) { in TPMT_PUBLIC_Unmarshal() argument
3304 result = TPMI_ALG_PUBLIC_Unmarshal(&target->type, buffer, size); in TPMT_PUBLIC_Unmarshal()
3308 result = TPMI_ALG_HASH_Unmarshal(&target->nameAlg, buffer, size, TRUE); in TPMT_PUBLIC_Unmarshal()
3312 result = TPMA_OBJECT_Unmarshal(&target->objectAttributes, buffer, size); in TPMT_PUBLIC_Unmarshal()
3316 result = TPM2B_DIGEST_Unmarshal(&target->authPolicy, buffer, size); in TPMT_PUBLIC_Unmarshal()
3320 result = TPMU_PUBLIC_PARMS_Unmarshal(&target->parameters, buffer, size, in TPMT_PUBLIC_Unmarshal()
3326 TPMU_PUBLIC_ID_Unmarshal(&target->unique, buffer, size, target->type); in TPMT_PUBLIC_Unmarshal()
3333 UINT16 TPM2B_PUBLIC_Marshal(TPM2B_PUBLIC* source, BYTE** buffer, INT32* size) { in TPM2B_PUBLIC_Marshal() argument
3335 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PUBLIC_Marshal()
3336 total_size += TPMT_PUBLIC_Marshal(&source->t.publicArea, buffer, size); in TPM2B_PUBLIC_Marshal()
3348 INT32* size) { in TPM2B_PUBLIC_Unmarshal() argument
3350 UINT32 start_size = *size; in TPM2B_PUBLIC_Unmarshal()
3352 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_PUBLIC_Unmarshal()
3356 if (target->t.size == 0) { in TPM2B_PUBLIC_Unmarshal()
3359 result = TPMT_PUBLIC_Unmarshal(&target->t.publicArea, buffer, size); in TPM2B_PUBLIC_Unmarshal()
3363 struct_size = start_size - *size - sizeof(target->t.size); in TPM2B_PUBLIC_Unmarshal()
3364 if (struct_size != target->t.size) { in TPM2B_PUBLIC_Unmarshal()
3372 INT32* size) { in TPM2B_SENSITIVE_DATA_Marshal() argument
3375 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SENSITIVE_DATA_Marshal()
3376 for (i = 0; i < source->t.size; ++i) { in TPM2B_SENSITIVE_DATA_Marshal()
3377 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_SENSITIVE_DATA_Marshal()
3384 INT32* size) { in TPM2B_SENSITIVE_DATA_Unmarshal() argument
3387 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_SENSITIVE_DATA_Unmarshal()
3391 if (target->t.size == 0) { in TPM2B_SENSITIVE_DATA_Unmarshal()
3394 if (target->t.size > MAX_SYM_DATA) { in TPM2B_SENSITIVE_DATA_Unmarshal()
3397 for (i = 0; i < target->t.size; ++i) { in TPM2B_SENSITIVE_DATA_Unmarshal()
3398 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_SENSITIVE_DATA_Unmarshal()
3408 INT32* size) { in TPM2B_SYM_KEY_Marshal() argument
3411 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SYM_KEY_Marshal()
3412 for (i = 0; i < source->t.size; ++i) { in TPM2B_SYM_KEY_Marshal()
3413 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_SYM_KEY_Marshal()
3420 INT32* size) { in TPM2B_SYM_KEY_Unmarshal() argument
3423 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_SYM_KEY_Unmarshal()
3427 if (target->t.size == 0) { in TPM2B_SYM_KEY_Unmarshal()
3430 if (target->t.size > MAX_SYM_KEY_BYTES) { in TPM2B_SYM_KEY_Unmarshal()
3433 for (i = 0; i < target->t.size; ++i) { in TPM2B_SYM_KEY_Unmarshal()
3434 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_SYM_KEY_Unmarshal()
3444 INT32* size, in TPMU_SENSITIVE_COMPOSITE_Marshal() argument
3450 buffer, size); in TPMU_SENSITIVE_COMPOSITE_Marshal()
3455 buffer, size); in TPMU_SENSITIVE_COMPOSITE_Marshal()
3460 buffer, size); in TPMU_SENSITIVE_COMPOSITE_Marshal()
3464 return TPM2B_SYM_KEY_Marshal((TPM2B_SYM_KEY*)&source->sym, buffer, size); in TPMU_SENSITIVE_COMPOSITE_Marshal()
3472 INT32* size, in TPMU_SENSITIVE_COMPOSITE_Unmarshal() argument
3478 (TPM2B_PRIVATE_KEY_RSA*)&target->rsa, buffer, size); in TPMU_SENSITIVE_COMPOSITE_Unmarshal()
3483 buffer, size); in TPMU_SENSITIVE_COMPOSITE_Unmarshal()
3488 (TPM2B_SENSITIVE_DATA*)&target->bits, buffer, size); in TPMU_SENSITIVE_COMPOSITE_Unmarshal()
3493 size); in TPMU_SENSITIVE_COMPOSITE_Unmarshal()
3501 INT32* size) { in TPMT_SENSITIVE_Marshal() argument
3503 total_size += TPMI_ALG_PUBLIC_Marshal(&source->sensitiveType, buffer, size); in TPMT_SENSITIVE_Marshal()
3504 total_size += TPM2B_AUTH_Marshal(&source->authValue, buffer, size); in TPMT_SENSITIVE_Marshal()
3505 total_size += TPM2B_DIGEST_Marshal(&source->seedValue, buffer, size); in TPMT_SENSITIVE_Marshal()
3507 size, source->sensitiveType); in TPMT_SENSITIVE_Marshal()
3513 INT32* size) { in TPMT_SENSITIVE_Unmarshal() argument
3515 result = TPMI_ALG_PUBLIC_Unmarshal(&target->sensitiveType, buffer, size); in TPMT_SENSITIVE_Unmarshal()
3519 result = TPM2B_AUTH_Unmarshal(&target->authValue, buffer, size); in TPMT_SENSITIVE_Unmarshal()
3523 result = TPM2B_DIGEST_Unmarshal(&target->seedValue, buffer, size); in TPMT_SENSITIVE_Unmarshal()
3527 result = TPMU_SENSITIVE_COMPOSITE_Unmarshal(&target->sensitive, buffer, size, in TPMT_SENSITIVE_Unmarshal()
3537 INT32* size) { in TPM2B_SENSITIVE_Marshal() argument
3539 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SENSITIVE_Marshal()
3540 total_size += TPMT_SENSITIVE_Marshal(&source->t.sensitiveArea, buffer, size); in TPM2B_SENSITIVE_Marshal()
3546 INT32* size) { in TPM2B_SENSITIVE_Unmarshal() argument
3548 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_SENSITIVE_Unmarshal()
3552 if (target->t.size == 0) { in TPM2B_SENSITIVE_Unmarshal()
3555 result = TPMT_SENSITIVE_Unmarshal(&target->t.sensitiveArea, buffer, size); in TPM2B_SENSITIVE_Unmarshal()
3564 INT32* size) { in TPMS_SENSITIVE_CREATE_Marshal() argument
3566 total_size += TPM2B_AUTH_Marshal(&source->userAuth, buffer, size); in TPMS_SENSITIVE_CREATE_Marshal()
3567 total_size += TPM2B_SENSITIVE_DATA_Marshal(&source->data, buffer, size); in TPMS_SENSITIVE_CREATE_Marshal()
3573 INT32* size) { in TPMS_SENSITIVE_CREATE_Unmarshal() argument
3575 result = TPM2B_AUTH_Unmarshal(&target->userAuth, buffer, size); in TPMS_SENSITIVE_CREATE_Unmarshal()
3579 result = TPM2B_SENSITIVE_DATA_Unmarshal(&target->data, buffer, size); in TPMS_SENSITIVE_CREATE_Unmarshal()
3588 INT32* size) { in TPM2B_SENSITIVE_CREATE_Marshal() argument
3590 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SENSITIVE_CREATE_Marshal()
3592 TPMS_SENSITIVE_CREATE_Marshal(&source->t.sensitive, buffer, size); in TPM2B_SENSITIVE_CREATE_Marshal()
3604 INT32* size) { in TPM2B_SENSITIVE_CREATE_Unmarshal() argument
3606 UINT32 start_size = *size; in TPM2B_SENSITIVE_CREATE_Unmarshal()
3608 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_SENSITIVE_CREATE_Unmarshal()
3612 if (target->t.size == 0) { in TPM2B_SENSITIVE_CREATE_Unmarshal()
3615 result = TPMS_SENSITIVE_CREATE_Unmarshal(&target->t.sensitive, buffer, size); in TPM2B_SENSITIVE_CREATE_Unmarshal()
3619 struct_size = start_size - *size - sizeof(target->t.size); in TPM2B_SENSITIVE_CREATE_Unmarshal()
3620 if (struct_size != target->t.size) { in TPM2B_SENSITIVE_CREATE_Unmarshal()
3628 INT32* size) { in TPM2B_TIMEOUT_Marshal() argument
3631 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_TIMEOUT_Marshal()
3632 for (i = 0; i < source->t.size; ++i) { in TPM2B_TIMEOUT_Marshal()
3633 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_TIMEOUT_Marshal()
3640 INT32* size) { in TPM2B_TIMEOUT_Unmarshal() argument
3643 result = UINT16_Unmarshal(&target->t.size, buffer, size); in TPM2B_TIMEOUT_Unmarshal()
3647 if (target->t.size == 0) { in TPM2B_TIMEOUT_Unmarshal()
3650 if (target->t.size > sizeof(UINT64)) { in TPM2B_TIMEOUT_Unmarshal()
3653 for (i = 0; i < target->t.size; ++i) { in TPM2B_TIMEOUT_Unmarshal()
3654 result = BYTE_Unmarshal(&target->t.buffer[i], buffer, size); in TPM2B_TIMEOUT_Unmarshal()
3664 INT32* size) { in TPMA_ALGORITHM_Marshal() argument
3665 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPMA_ALGORITHM_Marshal()
3670 INT32* size) { in TPMA_ALGORITHM_Unmarshal() argument
3672 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPMA_ALGORITHM_Unmarshal()
3685 UINT16 TPMA_CC_Marshal(TPMA_CC* source, BYTE** buffer, INT32* size) { in TPMA_CC_Marshal() argument
3686 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPMA_CC_Marshal()
3689 TPM_RC TPMA_CC_Unmarshal(TPMA_CC* target, BYTE** buffer, INT32* size) { in TPMA_CC_Unmarshal() argument
3691 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPMA_CC_Unmarshal()
3701 UINT16 TPMA_MEMORY_Marshal(TPMA_MEMORY* source, BYTE** buffer, INT32* size) { in TPMA_MEMORY_Marshal() argument
3702 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPMA_MEMORY_Marshal()
3705 TPM_RC TPMA_MEMORY_Unmarshal(TPMA_MEMORY* target, BYTE** buffer, INT32* size) { in TPMA_MEMORY_Unmarshal() argument
3707 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPMA_MEMORY_Unmarshal()
3719 INT32* size) { in TPMA_PERMANENT_Marshal() argument
3720 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPMA_PERMANENT_Marshal()
3725 INT32* size) { in TPMA_PERMANENT_Unmarshal() argument
3727 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPMA_PERMANENT_Unmarshal()
3740 UINT16 TPMA_SESSION_Marshal(TPMA_SESSION* source, BYTE** buffer, INT32* size) { in TPMA_SESSION_Marshal() argument
3741 return uint8_t_Marshal((uint8_t*)source, buffer, size); in TPMA_SESSION_Marshal()
3746 INT32* size) { in TPMA_SESSION_Unmarshal() argument
3748 result = uint8_t_Unmarshal((uint8_t*)target, buffer, size); in TPMA_SESSION_Unmarshal()
3760 INT32* size) { in TPMA_STARTUP_CLEAR_Marshal() argument
3761 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPMA_STARTUP_CLEAR_Marshal()
3766 INT32* size) { in TPMA_STARTUP_CLEAR_Unmarshal() argument
3768 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPMA_STARTUP_CLEAR_Unmarshal()
3780 INT32* size) { in TPMI_ALG_ASYM_Marshal() argument
3781 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_ASYM_Marshal()
3786 INT32* size, in TPMI_ALG_ASYM_Unmarshal() argument
3790 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_ASYM_Unmarshal()
3815 INT32* size) { in TPMI_ALG_RSA_DECRYPT_Marshal() argument
3816 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_RSA_DECRYPT_Marshal()
3821 INT32* size, in TPMI_ALG_RSA_DECRYPT_Unmarshal() argument
3825 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_RSA_DECRYPT_Unmarshal()
3850 INT32* size) { in TPMI_ALG_SIG_SCHEME_Marshal() argument
3851 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_SIG_SCHEME_Marshal()
3856 INT32* size, in TPMI_ALG_SIG_SCHEME_Unmarshal() argument
3860 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_SIG_SCHEME_Unmarshal()
3898 UINT16 TPMI_ALG_SYM_Marshal(TPMI_ALG_SYM* source, BYTE** buffer, INT32* size) { in TPMI_ALG_SYM_Marshal() argument
3899 return uint16_t_Marshal(source, buffer, size); in TPMI_ALG_SYM_Marshal()
3904 INT32* size, in TPMI_ALG_SYM_Unmarshal() argument
3908 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ALG_SYM_Unmarshal()
3939 INT32* size) { in TPMI_DH_CONTEXT_Marshal() argument
3940 return uint32_t_Marshal(source, buffer, size); in TPMI_DH_CONTEXT_Marshal()
3945 INT32* size) { in TPMI_DH_CONTEXT_Unmarshal() argument
3948 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_DH_CONTEXT_Unmarshal()
3969 INT32* size) { in TPMI_DH_ENTITY_Marshal() argument
3970 return uint32_t_Marshal(source, buffer, size); in TPMI_DH_ENTITY_Marshal()
3975 INT32* size, in TPMI_DH_ENTITY_Unmarshal() argument
3979 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_DH_ENTITY_Unmarshal()
4017 INT32* size) { in TPMI_DH_OBJECT_Marshal() argument
4018 return uint32_t_Marshal(source, buffer, size); in TPMI_DH_OBJECT_Marshal()
4023 INT32* size, in TPMI_DH_OBJECT_Unmarshal() argument
4027 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_DH_OBJECT_Unmarshal()
4046 UINT16 TPMI_DH_PCR_Marshal(TPMI_DH_PCR* source, BYTE** buffer, INT32* size) { in TPMI_DH_PCR_Marshal() argument
4047 return uint32_t_Marshal(source, buffer, size); in TPMI_DH_PCR_Marshal()
4052 INT32* size, in TPMI_DH_PCR_Unmarshal() argument
4056 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_DH_PCR_Unmarshal()
4074 INT32* size) { in TPMI_DH_PERSISTENT_Marshal() argument
4075 return uint32_t_Marshal(source, buffer, size); in TPMI_DH_PERSISTENT_Marshal()
4080 INT32* size) { in TPMI_DH_PERSISTENT_Unmarshal() argument
4083 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_DH_PERSISTENT_Unmarshal()
4098 INT32* size) { in TPMI_ECC_KEY_EXCHANGE_Marshal() argument
4099 return uint16_t_Marshal(source, buffer, size); in TPMI_ECC_KEY_EXCHANGE_Marshal()
4104 INT32* size, in TPMI_ECC_KEY_EXCHANGE_Unmarshal() argument
4108 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ECC_KEY_EXCHANGE_Unmarshal()
4136 INT32* size) { in TPMI_RH_CLEAR_Marshal() argument
4137 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_CLEAR_Marshal()
4142 INT32* size) { in TPMI_RH_CLEAR_Unmarshal() argument
4145 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_CLEAR_Unmarshal()
4163 INT32* size) { in TPMI_RH_ENABLES_Marshal() argument
4164 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_ENABLES_Marshal()
4169 INT32* size, in TPMI_RH_ENABLES_Unmarshal() argument
4173 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_ENABLES_Unmarshal()
4196 INT32* size) { in TPMI_RH_ENDORSEMENT_Marshal() argument
4197 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_ENDORSEMENT_Marshal()
4202 INT32* size, in TPMI_RH_ENDORSEMENT_Unmarshal() argument
4206 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_ENDORSEMENT_Unmarshal()
4226 INT32* size) { in TPMI_RH_HIERARCHY_Marshal() argument
4227 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_HIERARCHY_Marshal()
4232 INT32* size, in TPMI_RH_HIERARCHY_Unmarshal() argument
4236 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_HIERARCHY_Unmarshal()
4258 INT32* size) { in TPMI_RH_HIERARCHY_AUTH_Marshal() argument
4259 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_HIERARCHY_AUTH_Marshal()
4264 INT32* size) { in TPMI_RH_HIERARCHY_AUTH_Unmarshal() argument
4267 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_HIERARCHY_AUTH_Unmarshal()
4287 INT32* size) { in TPMI_RH_LOCKOUT_Marshal() argument
4288 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_LOCKOUT_Marshal()
4293 INT32* size) { in TPMI_RH_LOCKOUT_Unmarshal() argument
4296 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_LOCKOUT_Unmarshal()
4313 INT32* size) { in TPMI_RH_NV_AUTH_Marshal() argument
4314 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_NV_AUTH_Marshal()
4319 INT32* size) { in TPMI_RH_NV_AUTH_Unmarshal() argument
4322 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_NV_AUTH_Unmarshal()
4343 INT32* size) { in TPMI_RH_OWNER_Marshal() argument
4344 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_OWNER_Marshal()
4349 INT32* size, in TPMI_RH_OWNER_Unmarshal() argument
4353 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_OWNER_Unmarshal()
4373 INT32* size) { in TPMI_RH_PLATFORM_Marshal() argument
4374 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_PLATFORM_Marshal()
4379 INT32* size) { in TPMI_RH_PLATFORM_Unmarshal() argument
4382 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_PLATFORM_Unmarshal()
4399 INT32* size) { in TPMI_RH_PROVISION_Marshal() argument
4400 return uint32_t_Marshal(source, buffer, size); in TPMI_RH_PROVISION_Marshal()
4405 INT32* size) { in TPMI_RH_PROVISION_Unmarshal() argument
4408 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_RH_PROVISION_Unmarshal()
4426 INT32* size) { in TPMI_SH_AUTH_SESSION_Marshal() argument
4427 return uint32_t_Marshal(source, buffer, size); in TPMI_SH_AUTH_SESSION_Marshal()
4432 INT32* size, in TPMI_SH_AUTH_SESSION_Unmarshal() argument
4436 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_SH_AUTH_SESSION_Unmarshal()
4455 UINT16 TPMI_SH_HMAC_Marshal(TPMI_SH_HMAC* source, BYTE** buffer, INT32* size) { in TPMI_SH_HMAC_Marshal() argument
4456 return uint32_t_Marshal(source, buffer, size); in TPMI_SH_HMAC_Marshal()
4461 INT32* size) { in TPMI_SH_HMAC_Unmarshal() argument
4464 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_SH_HMAC_Unmarshal()
4479 INT32* size) { in TPMI_SH_POLICY_Marshal() argument
4480 return uint32_t_Marshal(source, buffer, size); in TPMI_SH_POLICY_Marshal()
4485 INT32* size) { in TPMI_SH_POLICY_Unmarshal() argument
4488 result = uint32_t_Unmarshal(target, buffer, size); in TPMI_SH_POLICY_Unmarshal()
4503 INT32* size) { in TPMI_ST_ATTEST_Marshal() argument
4504 return uint16_t_Marshal(source, buffer, size); in TPMI_ST_ATTEST_Marshal()
4509 INT32* size) { in TPMI_ST_ATTEST_Unmarshal() argument
4512 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ST_ATTEST_Unmarshal()
4535 INT32* size) { in TPMI_ST_COMMAND_TAG_Marshal() argument
4536 return uint16_t_Marshal(source, buffer, size); in TPMI_ST_COMMAND_TAG_Marshal()
4541 INT32* size) { in TPMI_ST_COMMAND_TAG_Unmarshal() argument
4544 result = uint16_t_Unmarshal(target, buffer, size); in TPMI_ST_COMMAND_TAG_Unmarshal()
4560 UINT16 TPMI_YES_NO_Marshal(TPMI_YES_NO* source, BYTE** buffer, INT32* size) { in TPMI_YES_NO_Marshal() argument
4561 return uint8_t_Marshal(source, buffer, size); in TPMI_YES_NO_Marshal()
4564 TPM_RC TPMI_YES_NO_Unmarshal(TPMI_YES_NO* target, BYTE** buffer, INT32* size) { in TPMI_YES_NO_Unmarshal() argument
4567 result = uint8_t_Unmarshal(target, buffer, size); in TPMI_YES_NO_Unmarshal()
4583 UINT16 TPML_ALG_Marshal(TPML_ALG* source, BYTE** buffer, INT32* size) { in TPML_ALG_Marshal() argument
4586 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_ALG_Marshal()
4588 total_size += TPM_ALG_ID_Marshal(&source->algorithms[i], buffer, size); in TPML_ALG_Marshal()
4593 TPM_RC TPML_ALG_Unmarshal(TPML_ALG* target, BYTE** buffer, INT32* size) { in TPML_ALG_Unmarshal() argument
4596 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_ALG_Unmarshal()
4604 result = TPM_ALG_ID_Unmarshal(&target->algorithms[i], buffer, size); in TPML_ALG_Unmarshal()
4614 INT32* size) { in TPMS_ALG_PROPERTY_Marshal() argument
4616 total_size += TPM_ALG_ID_Marshal(&source->alg, buffer, size); in TPMS_ALG_PROPERTY_Marshal()
4617 total_size += TPMA_ALGORITHM_Marshal(&source->algProperties, buffer, size); in TPMS_ALG_PROPERTY_Marshal()
4623 INT32* size) { in TPMS_ALG_PROPERTY_Unmarshal() argument
4625 result = TPM_ALG_ID_Unmarshal(&target->alg, buffer, size); in TPMS_ALG_PROPERTY_Unmarshal()
4629 result = TPMA_ALGORITHM_Unmarshal(&target->algProperties, buffer, size); in TPMS_ALG_PROPERTY_Unmarshal()
4638 INT32* size) { in TPML_ALG_PROPERTY_Marshal() argument
4641 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_ALG_PROPERTY_Marshal()
4644 TPMS_ALG_PROPERTY_Marshal(&source->algProperties[i], buffer, size); in TPML_ALG_PROPERTY_Marshal()
4651 INT32* size) { in TPML_ALG_PROPERTY_Unmarshal() argument
4654 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_ALG_PROPERTY_Unmarshal()
4663 TPMS_ALG_PROPERTY_Unmarshal(&target->algProperties[i], buffer, size); in TPML_ALG_PROPERTY_Unmarshal()
4671 UINT16 TPM_CC_Marshal(TPM_CC* source, BYTE** buffer, INT32* size) { in TPM_CC_Marshal() argument
4672 return uint32_t_Marshal(source, buffer, size); in TPM_CC_Marshal()
4675 TPM_RC TPM_CC_Unmarshal(TPM_CC* target, BYTE** buffer, INT32* size) { in TPM_CC_Unmarshal() argument
4677 result = uint32_t_Unmarshal(target, buffer, size); in TPM_CC_Unmarshal()
5244 UINT16 TPML_CC_Marshal(TPML_CC* source, BYTE** buffer, INT32* size) { in TPML_CC_Marshal() argument
5247 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_CC_Marshal()
5249 total_size += TPM_CC_Marshal(&source->commandCodes[i], buffer, size); in TPML_CC_Marshal()
5254 TPM_RC TPML_CC_Unmarshal(TPML_CC* target, BYTE** buffer, INT32* size) { in TPML_CC_Unmarshal() argument
5257 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_CC_Unmarshal()
5265 result = TPM_CC_Unmarshal(&target->commandCodes[i], buffer, size); in TPML_CC_Unmarshal()
5273 UINT16 TPML_CCA_Marshal(TPML_CCA* source, BYTE** buffer, INT32* size) { in TPML_CCA_Marshal() argument
5276 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_CCA_Marshal()
5278 total_size += TPMA_CC_Marshal(&source->commandAttributes[i], buffer, size); in TPML_CCA_Marshal()
5283 TPM_RC TPML_CCA_Unmarshal(TPML_CCA* target, BYTE** buffer, INT32* size) { in TPML_CCA_Unmarshal() argument
5286 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_CCA_Unmarshal()
5294 result = TPMA_CC_Unmarshal(&target->commandAttributes[i], buffer, size); in TPML_CCA_Unmarshal()
5302 UINT16 TPML_DIGEST_Marshal(TPML_DIGEST* source, BYTE** buffer, INT32* size) { in TPML_DIGEST_Marshal() argument
5305 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_DIGEST_Marshal()
5307 total_size += TPM2B_DIGEST_Marshal(&source->digests[i], buffer, size); in TPML_DIGEST_Marshal()
5312 TPM_RC TPML_DIGEST_Unmarshal(TPML_DIGEST* target, BYTE** buffer, INT32* size) { in TPML_DIGEST_Unmarshal() argument
5315 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_DIGEST_Unmarshal()
5326 result = TPM2B_DIGEST_Unmarshal(&target->digests[i], buffer, size); in TPML_DIGEST_Unmarshal()
5336 INT32* size, in TPMU_HA_Marshal() argument
5344 total_size += BYTE_Marshal(&source->sha[i], buffer, size); in TPMU_HA_Marshal()
5351 total_size += BYTE_Marshal(&source->sha1[i], buffer, size); in TPMU_HA_Marshal()
5358 total_size += BYTE_Marshal(&source->sha256[i], buffer, size); in TPMU_HA_Marshal()
5365 total_size += BYTE_Marshal(&source->sha384[i], buffer, size); in TPMU_HA_Marshal()
5372 total_size += BYTE_Marshal(&source->sha512[i], buffer, size); in TPMU_HA_Marshal()
5379 total_size += BYTE_Marshal(&source->sm3_256[i], buffer, size); in TPMU_HA_Marshal()
5393 INT32* size, in TPMU_HA_Unmarshal() argument
5401 result = BYTE_Unmarshal(&target->sha[i], buffer, size); in TPMU_HA_Unmarshal()
5411 result = BYTE_Unmarshal(&target->sha1[i], buffer, size); in TPMU_HA_Unmarshal()
5421 result = BYTE_Unmarshal(&target->sha256[i], buffer, size); in TPMU_HA_Unmarshal()
5431 result = BYTE_Unmarshal(&target->sha384[i], buffer, size); in TPMU_HA_Unmarshal()
5441 result = BYTE_Unmarshal(&target->sha512[i], buffer, size); in TPMU_HA_Unmarshal()
5451 result = BYTE_Unmarshal(&target->sm3_256[i], buffer, size); in TPMU_HA_Unmarshal()
5466 UINT16 TPMT_HA_Marshal(TPMT_HA* source, BYTE** buffer, INT32* size) { in TPMT_HA_Marshal() argument
5468 total_size += TPMI_ALG_HASH_Marshal(&source->hashAlg, buffer, size); in TPMT_HA_Marshal()
5469 total_size += TPMU_HA_Marshal(&source->digest, buffer, size, source->hashAlg); in TPMT_HA_Marshal()
5473 TPM_RC TPMT_HA_Unmarshal(TPMT_HA* target, BYTE** buffer, INT32* size) { in TPMT_HA_Unmarshal() argument
5475 result = TPMI_ALG_HASH_Unmarshal(&target->hashAlg, buffer, size, TRUE); in TPMT_HA_Unmarshal()
5479 result = TPMU_HA_Unmarshal(&target->digest, buffer, size, target->hashAlg); in TPMT_HA_Unmarshal()
5488 INT32* size) { in TPML_DIGEST_VALUES_Marshal() argument
5491 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_DIGEST_VALUES_Marshal()
5493 total_size += TPMT_HA_Marshal(&source->digests[i], buffer, size); in TPML_DIGEST_VALUES_Marshal()
5500 INT32* size) { in TPML_DIGEST_VALUES_Unmarshal() argument
5503 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_DIGEST_VALUES_Unmarshal()
5511 result = TPMT_HA_Unmarshal(&target->digests[i], buffer, size); in TPML_DIGEST_VALUES_Unmarshal()
5521 INT32* size) { in TPM_ECC_CURVE_Marshal() argument
5522 return uint16_t_Marshal(source, buffer, size); in TPM_ECC_CURVE_Marshal()
5527 INT32* size) { in TPM_ECC_CURVE_Unmarshal() argument
5529 result = uint16_t_Unmarshal(target, buffer, size); in TPM_ECC_CURVE_Unmarshal()
5565 INT32* size) { in TPML_ECC_CURVE_Marshal() argument
5568 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_ECC_CURVE_Marshal()
5570 total_size += TPM_ECC_CURVE_Marshal(&source->eccCurves[i], buffer, size); in TPML_ECC_CURVE_Marshal()
5577 INT32* size) { in TPML_ECC_CURVE_Unmarshal() argument
5580 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_ECC_CURVE_Unmarshal()
5588 result = TPM_ECC_CURVE_Unmarshal(&target->eccCurves[i], buffer, size); in TPML_ECC_CURVE_Unmarshal()
5596 UINT16 TPM_HANDLE_Marshal(TPM_HANDLE* source, BYTE** buffer, INT32* size) { in TPM_HANDLE_Marshal() argument
5597 return uint32_t_Marshal(source, buffer, size); in TPM_HANDLE_Marshal()
5600 TPM_RC TPM_HANDLE_Unmarshal(TPM_HANDLE* target, BYTE** buffer, INT32* size) { in TPM_HANDLE_Unmarshal() argument
5601 return uint32_t_Unmarshal(target, buffer, size); in TPM_HANDLE_Unmarshal()
5604 UINT16 TPML_HANDLE_Marshal(TPML_HANDLE* source, BYTE** buffer, INT32* size) { in TPML_HANDLE_Marshal() argument
5607 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_HANDLE_Marshal()
5609 total_size += TPM_HANDLE_Marshal(&source->handle[i], buffer, size); in TPML_HANDLE_Marshal()
5614 TPM_RC TPML_HANDLE_Unmarshal(TPML_HANDLE* target, BYTE** buffer, INT32* size) { in TPML_HANDLE_Unmarshal() argument
5617 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_HANDLE_Unmarshal()
5625 result = TPM_HANDLE_Unmarshal(&target->handle[i], buffer, size); in TPML_HANDLE_Unmarshal()
5633 UINT16 TPM_PT_Marshal(TPM_PT* source, BYTE** buffer, INT32* size) { in TPM_PT_Marshal() argument
5634 return uint32_t_Marshal(source, buffer, size); in TPM_PT_Marshal()
5637 TPM_RC TPM_PT_Unmarshal(TPM_PT* target, BYTE** buffer, INT32* size) { in TPM_PT_Unmarshal() argument
5639 result = uint32_t_Unmarshal(target, buffer, size); in TPM_PT_Unmarshal()
5855 INT32* size) { in TPMS_TAGGED_PCR_SELECT_Marshal() argument
5858 total_size += TPM_PT_Marshal(&source->tag, buffer, size); in TPMS_TAGGED_PCR_SELECT_Marshal()
5859 total_size += UINT8_Marshal(&source->sizeofSelect, buffer, size); in TPMS_TAGGED_PCR_SELECT_Marshal()
5861 total_size += BYTE_Marshal(&source->pcrSelect[i], buffer, size); in TPMS_TAGGED_PCR_SELECT_Marshal()
5868 INT32* size) { in TPMS_TAGGED_PCR_SELECT_Unmarshal() argument
5871 result = TPM_PT_Unmarshal(&target->tag, buffer, size); in TPMS_TAGGED_PCR_SELECT_Unmarshal()
5875 result = UINT8_Unmarshal(&target->sizeofSelect, buffer, size); in TPMS_TAGGED_PCR_SELECT_Unmarshal()
5886 result = BYTE_Unmarshal(&target->pcrSelect[i], buffer, size); in TPMS_TAGGED_PCR_SELECT_Unmarshal()
5896 INT32* size) { in TPML_TAGGED_PCR_PROPERTY_Marshal() argument
5899 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_TAGGED_PCR_PROPERTY_Marshal()
5902 TPMS_TAGGED_PCR_SELECT_Marshal(&source->pcrProperty[i], buffer, size); in TPML_TAGGED_PCR_PROPERTY_Marshal()
5909 INT32* size) { in TPML_TAGGED_PCR_PROPERTY_Unmarshal() argument
5912 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_TAGGED_PCR_PROPERTY_Unmarshal()
5921 TPMS_TAGGED_PCR_SELECT_Unmarshal(&target->pcrProperty[i], buffer, size); in TPML_TAGGED_PCR_PROPERTY_Unmarshal()
5931 INT32* size) { in TPMS_TAGGED_PROPERTY_Marshal() argument
5933 total_size += TPM_PT_Marshal(&source->property, buffer, size); in TPMS_TAGGED_PROPERTY_Marshal()
5934 total_size += UINT32_Marshal(&source->value, buffer, size); in TPMS_TAGGED_PROPERTY_Marshal()
5940 INT32* size) { in TPMS_TAGGED_PROPERTY_Unmarshal() argument
5942 result = TPM_PT_Unmarshal(&target->property, buffer, size); in TPMS_TAGGED_PROPERTY_Unmarshal()
5946 result = UINT32_Unmarshal(&target->value, buffer, size); in TPMS_TAGGED_PROPERTY_Unmarshal()
5955 INT32* size) { in TPML_TAGGED_TPM_PROPERTY_Marshal() argument
5958 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_TAGGED_TPM_PROPERTY_Marshal()
5961 TPMS_TAGGED_PROPERTY_Marshal(&source->tpmProperty[i], buffer, size); in TPML_TAGGED_TPM_PROPERTY_Marshal()
5968 INT32* size) { in TPML_TAGGED_TPM_PROPERTY_Unmarshal() argument
5971 result = UINT32_Unmarshal(&target->count, buffer, size); in TPML_TAGGED_TPM_PROPERTY_Unmarshal()
5980 TPMS_TAGGED_PROPERTY_Unmarshal(&target->tpmProperty[i], buffer, size); in TPML_TAGGED_TPM_PROPERTY_Unmarshal()
5990 INT32* size) { in TPMS_ALGORITHM_DESCRIPTION_Marshal() argument
5992 total_size += TPM_ALG_ID_Marshal(&source->alg, buffer, size); in TPMS_ALGORITHM_DESCRIPTION_Marshal()
5993 total_size += TPMA_ALGORITHM_Marshal(&source->attributes, buffer, size); in TPMS_ALGORITHM_DESCRIPTION_Marshal()
5999 INT32* size) { in TPMS_ALGORITHM_DESCRIPTION_Unmarshal() argument
6001 result = TPM_ALG_ID_Unmarshal(&target->alg, buffer, size); in TPMS_ALGORITHM_DESCRIPTION_Unmarshal()
6005 result = TPMA_ALGORITHM_Unmarshal(&target->attributes, buffer, size); in TPMS_ALGORITHM_DESCRIPTION_Unmarshal()
6014 INT32* size) { in TPMS_ALGORITHM_DETAIL_ECC_Marshal() argument
6016 total_size += TPM_ECC_CURVE_Marshal(&source->curveID, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6017 total_size += UINT16_Marshal(&source->keySize, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6018 total_size += TPMT_KDF_SCHEME_Marshal(&source->kdf, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6019 total_size += TPMT_ECC_SCHEME_Marshal(&source->sign, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6020 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->p, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6021 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->a, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6022 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->b, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6023 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->gX, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6024 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->gY, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6025 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->n, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6026 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->h, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6032 INT32* size) { in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal() argument
6034 result = TPM_ECC_CURVE_Unmarshal(&target->curveID, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6038 result = UINT16_Unmarshal(&target->keySize, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6042 result = TPMT_KDF_SCHEME_Unmarshal(&target->kdf, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6046 result = TPMT_ECC_SCHEME_Unmarshal(&target->sign, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6050 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->p, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6054 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->a, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6058 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->b, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6062 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->gX, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6066 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->gY, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6070 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->n, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6074 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->h, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
6081 UINT16 UINT64_Marshal(UINT64* source, BYTE** buffer, INT32* size) { in UINT64_Marshal() argument
6082 return uint64_t_Marshal(source, buffer, size); in UINT64_Marshal()
6085 TPM_RC UINT64_Unmarshal(UINT64* target, BYTE** buffer, INT32* size) { in UINT64_Unmarshal() argument
6086 return uint64_t_Unmarshal(target, buffer, size); in UINT64_Unmarshal()
6091 INT32* size) { in TPM_GENERATED_Marshal() argument
6092 return uint32_t_Marshal(source, buffer, size); in TPM_GENERATED_Marshal()
6097 INT32* size) { in TPM_GENERATED_Unmarshal() argument
6099 result = uint32_t_Unmarshal(target, buffer, size); in TPM_GENERATED_Unmarshal()
6111 INT32* size) { in TPMS_CREATION_INFO_Marshal() argument
6113 total_size += TPM2B_NAME_Marshal(&source->objectName, buffer, size); in TPMS_CREATION_INFO_Marshal()
6114 total_size += TPM2B_DIGEST_Marshal(&source->creationHash, buffer, size); in TPMS_CREATION_INFO_Marshal()
6120 INT32* size) { in TPMS_CREATION_INFO_Unmarshal() argument
6122 result = TPM2B_NAME_Unmarshal(&target->objectName, buffer, size); in TPMS_CREATION_INFO_Unmarshal()
6126 result = TPM2B_DIGEST_Unmarshal(&target->creationHash, buffer, size); in TPMS_CREATION_INFO_Unmarshal()
6135 INT32* size) { in TPMS_COMMAND_AUDIT_INFO_Marshal() argument
6137 total_size += UINT64_Marshal(&source->auditCounter, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6138 total_size += TPM_ALG_ID_Marshal(&source->digestAlg, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6139 total_size += TPM2B_DIGEST_Marshal(&source->auditDigest, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6140 total_size += TPM2B_DIGEST_Marshal(&source->commandDigest, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6146 INT32* size) { in TPMS_COMMAND_AUDIT_INFO_Unmarshal() argument
6148 result = UINT64_Unmarshal(&target->auditCounter, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Unmarshal()
6152 result = TPM_ALG_ID_Unmarshal(&target->digestAlg, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Unmarshal()
6156 result = TPM2B_DIGEST_Unmarshal(&target->auditDigest, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Unmarshal()
6160 result = TPM2B_DIGEST_Unmarshal(&target->commandDigest, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Unmarshal()
6169 INT32* size) { in TPMS_QUOTE_INFO_Marshal() argument
6171 total_size += TPML_PCR_SELECTION_Marshal(&source->pcrSelect, buffer, size); in TPMS_QUOTE_INFO_Marshal()
6172 total_size += TPM2B_DIGEST_Marshal(&source->pcrDigest, buffer, size); in TPMS_QUOTE_INFO_Marshal()
6178 INT32* size) { in TPMS_QUOTE_INFO_Unmarshal() argument
6180 result = TPML_PCR_SELECTION_Unmarshal(&target->pcrSelect, buffer, size); in TPMS_QUOTE_INFO_Unmarshal()
6184 result = TPM2B_DIGEST_Unmarshal(&target->pcrDigest, buffer, size); in TPMS_QUOTE_INFO_Unmarshal()
6193 INT32* size) { in TPMS_CERTIFY_INFO_Marshal() argument
6195 total_size += TPM2B_NAME_Marshal(&source->name, buffer, size); in TPMS_CERTIFY_INFO_Marshal()
6196 total_size += TPM2B_NAME_Marshal(&source->qualifiedName, buffer, size); in TPMS_CERTIFY_INFO_Marshal()
6202 INT32* size) { in TPMS_CERTIFY_INFO_Unmarshal() argument
6204 result = TPM2B_NAME_Unmarshal(&target->name, buffer, size); in TPMS_CERTIFY_INFO_Unmarshal()
6208 result = TPM2B_NAME_Unmarshal(&target->qualifiedName, buffer, size); in TPMS_CERTIFY_INFO_Unmarshal()
6217 INT32* size) { in TPMS_SESSION_AUDIT_INFO_Marshal() argument
6219 total_size += TPMI_YES_NO_Marshal(&source->exclusiveSession, buffer, size); in TPMS_SESSION_AUDIT_INFO_Marshal()
6220 total_size += TPM2B_DIGEST_Marshal(&source->sessionDigest, buffer, size); in TPMS_SESSION_AUDIT_INFO_Marshal()
6226 INT32* size) { in TPMS_SESSION_AUDIT_INFO_Unmarshal() argument
6228 result = TPMI_YES_NO_Unmarshal(&target->exclusiveSession, buffer, size); in TPMS_SESSION_AUDIT_INFO_Unmarshal()
6232 result = TPM2B_DIGEST_Unmarshal(&target->sessionDigest, buffer, size); in TPMS_SESSION_AUDIT_INFO_Unmarshal()
6241 INT32* size) { in TPMS_CLOCK_INFO_Marshal() argument
6243 total_size += UINT64_Marshal(&source->clock, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6244 total_size += UINT32_Marshal(&source->resetCount, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6245 total_size += UINT32_Marshal(&source->restartCount, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6246 total_size += TPMI_YES_NO_Marshal(&source->safe, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6252 INT32* size) { in TPMS_CLOCK_INFO_Unmarshal() argument
6254 result = UINT64_Unmarshal(&target->clock, buffer, size); in TPMS_CLOCK_INFO_Unmarshal()
6258 result = UINT32_Unmarshal(&target->resetCount, buffer, size); in TPMS_CLOCK_INFO_Unmarshal()
6262 result = UINT32_Unmarshal(&target->restartCount, buffer, size); in TPMS_CLOCK_INFO_Unmarshal()
6266 result = TPMI_YES_NO_Unmarshal(&target->safe, buffer, size); in TPMS_CLOCK_INFO_Unmarshal()
6275 INT32* size) { in TPMS_TIME_INFO_Marshal() argument
6277 total_size += UINT64_Marshal(&source->time, buffer, size); in TPMS_TIME_INFO_Marshal()
6278 total_size += TPMS_CLOCK_INFO_Marshal(&source->clockInfo, buffer, size); in TPMS_TIME_INFO_Marshal()
6284 INT32* size) { in TPMS_TIME_INFO_Unmarshal() argument
6286 result = UINT64_Unmarshal(&target->time, buffer, size); in TPMS_TIME_INFO_Unmarshal()
6290 result = TPMS_CLOCK_INFO_Unmarshal(&target->clockInfo, buffer, size); in TPMS_TIME_INFO_Unmarshal()
6299 INT32* size) { in TPMS_TIME_ATTEST_INFO_Marshal() argument
6301 total_size += TPMS_TIME_INFO_Marshal(&source->time, buffer, size); in TPMS_TIME_ATTEST_INFO_Marshal()
6302 total_size += UINT64_Marshal(&source->firmwareVersion, buffer, size); in TPMS_TIME_ATTEST_INFO_Marshal()
6308 INT32* size) { in TPMS_TIME_ATTEST_INFO_Unmarshal() argument
6310 result = TPMS_TIME_INFO_Unmarshal(&target->time, buffer, size); in TPMS_TIME_ATTEST_INFO_Unmarshal()
6314 result = UINT64_Unmarshal(&target->firmwareVersion, buffer, size); in TPMS_TIME_ATTEST_INFO_Unmarshal()
6323 INT32* size) { in TPMS_NV_CERTIFY_INFO_Marshal() argument
6325 total_size += TPM2B_NAME_Marshal(&source->indexName, buffer, size); in TPMS_NV_CERTIFY_INFO_Marshal()
6326 total_size += UINT16_Marshal(&source->offset, buffer, size); in TPMS_NV_CERTIFY_INFO_Marshal()
6327 total_size += TPM2B_MAX_NV_BUFFER_Marshal(&source->nvContents, buffer, size); in TPMS_NV_CERTIFY_INFO_Marshal()
6333 INT32* size) { in TPMS_NV_CERTIFY_INFO_Unmarshal() argument
6335 result = TPM2B_NAME_Unmarshal(&target->indexName, buffer, size); in TPMS_NV_CERTIFY_INFO_Unmarshal()
6339 result = UINT16_Unmarshal(&target->offset, buffer, size); in TPMS_NV_CERTIFY_INFO_Unmarshal()
6343 result = TPM2B_MAX_NV_BUFFER_Unmarshal(&target->nvContents, buffer, size); in TPMS_NV_CERTIFY_INFO_Unmarshal()
6352 INT32* size, in TPMU_ATTEST_Marshal() argument
6357 buffer, size); in TPMU_ATTEST_Marshal()
6360 buffer, size); in TPMU_ATTEST_Marshal()
6363 size); in TPMU_ATTEST_Marshal()
6366 (TPMS_COMMAND_AUDIT_INFO*)&source->commandAudit, buffer, size); in TPMU_ATTEST_Marshal()
6369 (TPMS_SESSION_AUDIT_INFO*)&source->sessionAudit, buffer, size); in TPMU_ATTEST_Marshal()
6372 (TPMS_TIME_ATTEST_INFO*)&source->time, buffer, size); in TPMU_ATTEST_Marshal()
6375 buffer, size); in TPMU_ATTEST_Marshal()
6382 INT32* size, in TPMU_ATTEST_Unmarshal() argument
6387 buffer, size); in TPMU_ATTEST_Unmarshal()
6390 (TPMS_CREATION_INFO*)&target->creation, buffer, size); in TPMU_ATTEST_Unmarshal()
6393 size); in TPMU_ATTEST_Unmarshal()
6396 (TPMS_COMMAND_AUDIT_INFO*)&target->commandAudit, buffer, size); in TPMU_ATTEST_Unmarshal()
6399 (TPMS_SESSION_AUDIT_INFO*)&target->sessionAudit, buffer, size); in TPMU_ATTEST_Unmarshal()
6402 (TPMS_TIME_ATTEST_INFO*)&target->time, buffer, size); in TPMU_ATTEST_Unmarshal()
6405 buffer, size); in TPMU_ATTEST_Unmarshal()
6410 UINT16 TPMS_ATTEST_Marshal(TPMS_ATTEST* source, BYTE** buffer, INT32* size) { in TPMS_ATTEST_Marshal() argument
6412 total_size += TPM_GENERATED_Marshal(&source->magic, buffer, size); in TPMS_ATTEST_Marshal()
6413 total_size += TPMI_ST_ATTEST_Marshal(&source->type, buffer, size); in TPMS_ATTEST_Marshal()
6414 total_size += TPM2B_NAME_Marshal(&source->qualifiedSigner, buffer, size); in TPMS_ATTEST_Marshal()
6415 total_size += TPM2B_DATA_Marshal(&source->extraData, buffer, size); in TPMS_ATTEST_Marshal()
6416 total_size += TPMS_CLOCK_INFO_Marshal(&source->clockInfo, buffer, size); in TPMS_ATTEST_Marshal()
6417 total_size += UINT64_Marshal(&source->firmwareVersion, buffer, size); in TPMS_ATTEST_Marshal()
6419 TPMU_ATTEST_Marshal(&source->attested, buffer, size, source->type); in TPMS_ATTEST_Marshal()
6423 TPM_RC TPMS_ATTEST_Unmarshal(TPMS_ATTEST* target, BYTE** buffer, INT32* size) { in TPMS_ATTEST_Unmarshal() argument
6425 result = TPM_GENERATED_Unmarshal(&target->magic, buffer, size); in TPMS_ATTEST_Unmarshal()
6429 result = TPMI_ST_ATTEST_Unmarshal(&target->type, buffer, size); in TPMS_ATTEST_Unmarshal()
6433 result = TPM2B_NAME_Unmarshal(&target->qualifiedSigner, buffer, size); in TPMS_ATTEST_Unmarshal()
6437 result = TPM2B_DATA_Unmarshal(&target->extraData, buffer, size); in TPMS_ATTEST_Unmarshal()
6441 result = TPMS_CLOCK_INFO_Unmarshal(&target->clockInfo, buffer, size); in TPMS_ATTEST_Unmarshal()
6445 result = UINT64_Unmarshal(&target->firmwareVersion, buffer, size); in TPMS_ATTEST_Unmarshal()
6449 result = TPMU_ATTEST_Unmarshal(&target->attested, buffer, size, target->type); in TPMS_ATTEST_Unmarshal()
6458 INT32* size) { in TPMS_AUTH_COMMAND_Marshal() argument
6461 TPMI_SH_AUTH_SESSION_Marshal(&source->sessionHandle, buffer, size); in TPMS_AUTH_COMMAND_Marshal()
6462 total_size += TPM2B_NONCE_Marshal(&source->nonce, buffer, size); in TPMS_AUTH_COMMAND_Marshal()
6463 total_size += TPMA_SESSION_Marshal(&source->sessionAttributes, buffer, size); in TPMS_AUTH_COMMAND_Marshal()
6464 total_size += TPM2B_AUTH_Marshal(&source->hmac, buffer, size); in TPMS_AUTH_COMMAND_Marshal()
6470 INT32* size) { in TPMS_AUTH_COMMAND_Unmarshal() argument
6472 result = TPMI_SH_AUTH_SESSION_Unmarshal(&target->sessionHandle, buffer, size, in TPMS_AUTH_COMMAND_Unmarshal()
6477 result = TPM2B_NONCE_Unmarshal(&target->nonce, buffer, size); in TPMS_AUTH_COMMAND_Unmarshal()
6481 result = TPMA_SESSION_Unmarshal(&target->sessionAttributes, buffer, size); in TPMS_AUTH_COMMAND_Unmarshal()
6485 result = TPM2B_AUTH_Unmarshal(&target->hmac, buffer, size); in TPMS_AUTH_COMMAND_Unmarshal()
6494 INT32* size) { in TPMS_AUTH_RESPONSE_Marshal() argument
6496 total_size += TPM2B_NONCE_Marshal(&source->nonce, buffer, size); in TPMS_AUTH_RESPONSE_Marshal()
6497 total_size += TPMA_SESSION_Marshal(&source->sessionAttributes, buffer, size); in TPMS_AUTH_RESPONSE_Marshal()
6498 total_size += TPM2B_AUTH_Marshal(&source->hmac, buffer, size); in TPMS_AUTH_RESPONSE_Marshal()
6504 INT32* size) { in TPMS_AUTH_RESPONSE_Unmarshal() argument
6506 result = TPM2B_NONCE_Unmarshal(&target->nonce, buffer, size); in TPMS_AUTH_RESPONSE_Unmarshal()
6510 result = TPMA_SESSION_Unmarshal(&target->sessionAttributes, buffer, size); in TPMS_AUTH_RESPONSE_Unmarshal()
6514 result = TPM2B_AUTH_Unmarshal(&target->hmac, buffer, size); in TPMS_AUTH_RESPONSE_Unmarshal()
6521 UINT16 TPM_CAP_Marshal(TPM_CAP* source, BYTE** buffer, INT32* size) { in TPM_CAP_Marshal() argument
6522 return uint32_t_Marshal(source, buffer, size); in TPM_CAP_Marshal()
6525 TPM_RC TPM_CAP_Unmarshal(TPM_CAP* target, BYTE** buffer, INT32* size) { in TPM_CAP_Unmarshal() argument
6527 result = uint32_t_Unmarshal(target, buffer, size); in TPM_CAP_Unmarshal()
6572 INT32* size, in TPMU_CAPABILITIES_Marshal() argument
6577 buffer, size); in TPMU_CAPABILITIES_Marshal()
6579 return TPML_HANDLE_Marshal((TPML_HANDLE*)&source->handles, buffer, size); in TPMU_CAPABILITIES_Marshal()
6581 return TPML_CCA_Marshal((TPML_CCA*)&source->command, buffer, size); in TPMU_CAPABILITIES_Marshal()
6583 return TPML_CC_Marshal((TPML_CC*)&source->ppCommands, buffer, size); in TPMU_CAPABILITIES_Marshal()
6585 return TPML_CC_Marshal((TPML_CC*)&source->auditCommands, buffer, size); in TPMU_CAPABILITIES_Marshal()
6588 (TPML_PCR_SELECTION*)&source->assignedPCR, buffer, size); in TPMU_CAPABILITIES_Marshal()
6591 (TPML_TAGGED_TPM_PROPERTY*)&source->tpmProperties, buffer, size); in TPMU_CAPABILITIES_Marshal()
6594 (TPML_TAGGED_PCR_PROPERTY*)&source->pcrProperties, buffer, size); in TPMU_CAPABILITIES_Marshal()
6597 size); in TPMU_CAPABILITIES_Marshal()
6604 INT32* size, in TPMU_CAPABILITIES_Unmarshal() argument
6609 (TPML_ALG_PROPERTY*)&target->algorithms, buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6612 size); in TPMU_CAPABILITIES_Unmarshal()
6614 return TPML_CCA_Unmarshal((TPML_CCA*)&target->command, buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6616 return TPML_CC_Unmarshal((TPML_CC*)&target->ppCommands, buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6618 return TPML_CC_Unmarshal((TPML_CC*)&target->auditCommands, buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6621 (TPML_PCR_SELECTION*)&target->assignedPCR, buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6624 (TPML_TAGGED_TPM_PROPERTY*)&target->tpmProperties, buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6627 (TPML_TAGGED_PCR_PROPERTY*)&target->pcrProperties, buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6630 buffer, size); in TPMU_CAPABILITIES_Unmarshal()
6637 INT32* size) { in TPMS_CAPABILITY_DATA_Marshal() argument
6639 total_size += TPM_CAP_Marshal(&source->capability, buffer, size); in TPMS_CAPABILITY_DATA_Marshal()
6640 total_size += TPMU_CAPABILITIES_Marshal(&source->data, buffer, size, in TPMS_CAPABILITY_DATA_Marshal()
6647 INT32* size) { in TPMS_CAPABILITY_DATA_Unmarshal() argument
6649 result = TPM_CAP_Unmarshal(&target->capability, buffer, size); in TPMS_CAPABILITY_DATA_Unmarshal()
6653 result = TPMU_CAPABILITIES_Unmarshal(&target->data, buffer, size, in TPMS_CAPABILITY_DATA_Unmarshal()
6661 UINT16 TPMS_CONTEXT_Marshal(TPMS_CONTEXT* source, BYTE** buffer, INT32* size) { in TPMS_CONTEXT_Marshal() argument
6663 total_size += UINT64_Marshal(&source->sequence, buffer, size); in TPMS_CONTEXT_Marshal()
6664 total_size += TPMI_DH_CONTEXT_Marshal(&source->savedHandle, buffer, size); in TPMS_CONTEXT_Marshal()
6665 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMS_CONTEXT_Marshal()
6666 total_size += TPM2B_CONTEXT_DATA_Marshal(&source->contextBlob, buffer, size); in TPMS_CONTEXT_Marshal()
6672 INT32* size) { in TPMS_CONTEXT_Unmarshal() argument
6674 result = UINT64_Unmarshal(&target->sequence, buffer, size); in TPMS_CONTEXT_Unmarshal()
6678 result = TPMI_DH_CONTEXT_Unmarshal(&target->savedHandle, buffer, size); in TPMS_CONTEXT_Unmarshal()
6682 result = TPMI_RH_HIERARCHY_Unmarshal(&target->hierarchy, buffer, size, TRUE); in TPMS_CONTEXT_Unmarshal()
6686 result = TPM2B_CONTEXT_DATA_Unmarshal(&target->contextBlob, buffer, size); in TPMS_CONTEXT_Unmarshal()
6695 INT32* size) { in TPMS_CONTEXT_DATA_Marshal() argument
6697 total_size += TPM2B_DIGEST_Marshal(&source->integrity, buffer, size); in TPMS_CONTEXT_DATA_Marshal()
6699 TPM2B_CONTEXT_SENSITIVE_Marshal(&source->encrypted, buffer, size); in TPMS_CONTEXT_DATA_Marshal()
6705 INT32* size) { in TPMS_CONTEXT_DATA_Unmarshal() argument
6707 result = TPM2B_DIGEST_Unmarshal(&target->integrity, buffer, size); in TPMS_CONTEXT_DATA_Unmarshal()
6711 result = TPM2B_CONTEXT_SENSITIVE_Unmarshal(&target->encrypted, buffer, size); in TPMS_CONTEXT_DATA_Unmarshal()
6720 INT32* size) { in TPMS_PCR_SELECT_Marshal() argument
6723 total_size += UINT8_Marshal(&source->sizeofSelect, buffer, size); in TPMS_PCR_SELECT_Marshal()
6725 total_size += BYTE_Marshal(&source->pcrSelect[i], buffer, size); in TPMS_PCR_SELECT_Marshal()
6732 INT32* size) { in TPMS_PCR_SELECT_Unmarshal() argument
6735 result = UINT8_Unmarshal(&target->sizeofSelect, buffer, size); in TPMS_PCR_SELECT_Unmarshal()
6746 result = BYTE_Unmarshal(&target->pcrSelect[i], buffer, size); in TPMS_PCR_SELECT_Unmarshal()
6756 INT32* size) { in TPMS_SIGNATURE_ECC_Marshal() argument
6758 total_size += TPMI_ALG_HASH_Marshal(&source->hash, buffer, size); in TPMS_SIGNATURE_ECC_Marshal()
6759 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->signatureR, buffer, size); in TPMS_SIGNATURE_ECC_Marshal()
6760 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->signatureS, buffer, size); in TPMS_SIGNATURE_ECC_Marshal()
6766 INT32* size) { in TPMS_SIGNATURE_ECC_Unmarshal() argument
6768 result = TPMI_ALG_HASH_Unmarshal(&target->hash, buffer, size, FALSE); in TPMS_SIGNATURE_ECC_Unmarshal()
6772 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->signatureR, buffer, size); in TPMS_SIGNATURE_ECC_Unmarshal()
6776 result = TPM2B_ECC_PARAMETER_Unmarshal(&target->signatureS, buffer, size); in TPMS_SIGNATURE_ECC_Unmarshal()
6785 INT32* size) { in TPMS_SIGNATURE_ECDAA_Marshal() argument
6786 return TPMS_SIGNATURE_ECC_Marshal(source, buffer, size); in TPMS_SIGNATURE_ECDAA_Marshal()
6791 INT32* size) { in TPMS_SIGNATURE_ECDAA_Unmarshal() argument
6792 return TPMS_SIGNATURE_ECC_Unmarshal(target, buffer, size); in TPMS_SIGNATURE_ECDAA_Unmarshal()
6797 INT32* size) { in TPMS_SIGNATURE_ECDSA_Marshal() argument
6798 return TPMS_SIGNATURE_ECC_Marshal(source, buffer, size); in TPMS_SIGNATURE_ECDSA_Marshal()
6803 INT32* size) { in TPMS_SIGNATURE_ECDSA_Unmarshal() argument
6804 return TPMS_SIGNATURE_ECC_Unmarshal(target, buffer, size); in TPMS_SIGNATURE_ECDSA_Unmarshal()
6809 INT32* size) { in TPMS_SIGNATURE_ECSCHNORR_Marshal() argument
6810 return TPMS_SIGNATURE_ECC_Marshal(source, buffer, size); in TPMS_SIGNATURE_ECSCHNORR_Marshal()
6815 INT32* size) { in TPMS_SIGNATURE_ECSCHNORR_Unmarshal() argument
6816 return TPMS_SIGNATURE_ECC_Unmarshal(target, buffer, size); in TPMS_SIGNATURE_ECSCHNORR_Unmarshal()
6821 INT32* size) { in TPMS_SIGNATURE_RSA_Marshal() argument
6823 total_size += TPMI_ALG_HASH_Marshal(&source->hash, buffer, size); in TPMS_SIGNATURE_RSA_Marshal()
6824 total_size += TPM2B_PUBLIC_KEY_RSA_Marshal(&source->sig, buffer, size); in TPMS_SIGNATURE_RSA_Marshal()
6830 INT32* size) { in TPMS_SIGNATURE_RSA_Unmarshal() argument
6832 result = TPMI_ALG_HASH_Unmarshal(&target->hash, buffer, size, FALSE); in TPMS_SIGNATURE_RSA_Unmarshal()
6836 result = TPM2B_PUBLIC_KEY_RSA_Unmarshal(&target->sig, buffer, size); in TPMS_SIGNATURE_RSA_Unmarshal()
6845 INT32* size) { in TPMS_SIGNATURE_RSAPSS_Marshal() argument
6846 return TPMS_SIGNATURE_RSA_Marshal(source, buffer, size); in TPMS_SIGNATURE_RSAPSS_Marshal()
6851 INT32* size) { in TPMS_SIGNATURE_RSAPSS_Unmarshal() argument
6852 return TPMS_SIGNATURE_RSA_Unmarshal(target, buffer, size); in TPMS_SIGNATURE_RSAPSS_Unmarshal()
6857 INT32* size) { in TPMS_SIGNATURE_RSASSA_Marshal() argument
6858 return TPMS_SIGNATURE_RSA_Marshal(source, buffer, size); in TPMS_SIGNATURE_RSASSA_Marshal()
6863 INT32* size) { in TPMS_SIGNATURE_RSASSA_Unmarshal() argument
6864 return TPMS_SIGNATURE_RSA_Unmarshal(target, buffer, size); in TPMS_SIGNATURE_RSASSA_Unmarshal()
6869 INT32* size) { in TPMS_SIGNATURE_SM2_Marshal() argument
6870 return TPMS_SIGNATURE_ECC_Marshal(source, buffer, size); in TPMS_SIGNATURE_SM2_Marshal()
6875 INT32* size) { in TPMS_SIGNATURE_SM2_Unmarshal() argument
6876 return TPMS_SIGNATURE_ECC_Unmarshal(target, buffer, size); in TPMS_SIGNATURE_SM2_Unmarshal()
6881 INT32* size) { in TPMT_PUBLIC_PARMS_Marshal() argument
6883 total_size += TPMI_ALG_PUBLIC_Marshal(&source->type, buffer, size); in TPMT_PUBLIC_PARMS_Marshal()
6884 total_size += TPMU_PUBLIC_PARMS_Marshal(&source->parameters, buffer, size, in TPMT_PUBLIC_PARMS_Marshal()
6891 INT32* size) { in TPMT_PUBLIC_PARMS_Unmarshal() argument
6893 result = TPMI_ALG_PUBLIC_Unmarshal(&target->type, buffer, size); in TPMT_PUBLIC_PARMS_Unmarshal()
6897 result = TPMU_PUBLIC_PARMS_Unmarshal(&target->parameters, buffer, size, in TPMT_PUBLIC_PARMS_Unmarshal()
6907 INT32* size) { in TPMT_RSA_DECRYPT_Marshal() argument
6909 total_size += TPMI_ALG_RSA_DECRYPT_Marshal(&source->scheme, buffer, size); in TPMT_RSA_DECRYPT_Marshal()
6911 TPMU_ASYM_SCHEME_Marshal(&source->details, buffer, size, source->scheme); in TPMT_RSA_DECRYPT_Marshal()
6917 INT32* size) { in TPMT_RSA_DECRYPT_Unmarshal() argument
6919 result = TPMI_ALG_RSA_DECRYPT_Unmarshal(&target->scheme, buffer, size, TRUE); in TPMT_RSA_DECRYPT_Unmarshal()
6923 result = TPMU_ASYM_SCHEME_Unmarshal(&target->details, buffer, size, in TPMT_RSA_DECRYPT_Unmarshal()
6933 INT32* size, in TPMU_SIGNATURE_Marshal() argument
6939 (TPMS_SIGNATURE_RSASSA*)&source->rsassa, buffer, size); in TPMU_SIGNATURE_Marshal()
6944 (TPMS_SIGNATURE_RSAPSS*)&source->rsapss, buffer, size); in TPMU_SIGNATURE_Marshal()
6949 buffer, size); in TPMU_SIGNATURE_Marshal()
6954 buffer, size); in TPMU_SIGNATURE_Marshal()
6959 buffer, size); in TPMU_SIGNATURE_Marshal()
6964 (TPMS_SIGNATURE_ECSCHNORR*)&source->ecschnorr, buffer, size); in TPMU_SIGNATURE_Marshal()
6968 return TPMT_HA_Marshal((TPMT_HA*)&source->hmac, buffer, size); in TPMU_SIGNATURE_Marshal()
6980 INT32* size, in TPMU_SIGNATURE_Unmarshal() argument
6986 (TPMS_SIGNATURE_RSASSA*)&target->rsassa, buffer, size); in TPMU_SIGNATURE_Unmarshal()
6991 (TPMS_SIGNATURE_RSAPSS*)&target->rsapss, buffer, size); in TPMU_SIGNATURE_Unmarshal()
6996 (TPMS_SIGNATURE_ECDSA*)&target->ecdsa, buffer, size); in TPMU_SIGNATURE_Unmarshal()
7001 (TPMS_SIGNATURE_ECDAA*)&target->ecdaa, buffer, size); in TPMU_SIGNATURE_Unmarshal()
7006 buffer, size); in TPMU_SIGNATURE_Unmarshal()
7011 (TPMS_SIGNATURE_ECSCHNORR*)&target->ecschnorr, buffer, size); in TPMU_SIGNATURE_Unmarshal()
7015 return TPMT_HA_Unmarshal((TPMT_HA*)&target->hmac, buffer, size); in TPMU_SIGNATURE_Unmarshal()
7027 INT32* size) { in TPMT_SIGNATURE_Marshal() argument
7029 total_size += TPMI_ALG_SIG_SCHEME_Marshal(&source->sigAlg, buffer, size); in TPMT_SIGNATURE_Marshal()
7031 TPMU_SIGNATURE_Marshal(&source->signature, buffer, size, source->sigAlg); in TPMT_SIGNATURE_Marshal()
7037 INT32* size) { in TPMT_SIGNATURE_Unmarshal() argument
7039 result = TPMI_ALG_SIG_SCHEME_Unmarshal(&target->sigAlg, buffer, size, TRUE); in TPMT_SIGNATURE_Unmarshal()
7043 result = TPMU_SIGNATURE_Unmarshal(&target->signature, buffer, size, in TPMT_SIGNATURE_Unmarshal()
7053 INT32* size, in TPMU_SIG_SCHEME_Marshal() argument
7059 (TPMS_SIG_SCHEME_RSASSA*)&source->rsassa, buffer, size); in TPMU_SIG_SCHEME_Marshal()
7064 (TPMS_SIG_SCHEME_RSAPSS*)&source->rsapss, buffer, size); in TPMU_SIG_SCHEME_Marshal()
7069 (TPMS_SIG_SCHEME_ECDSA*)&source->ecdsa, buffer, size); in TPMU_SIG_SCHEME_Marshal()
7074 (TPMS_SIG_SCHEME_ECDAA*)&source->ecdaa, buffer, size); in TPMU_SIG_SCHEME_Marshal()
7079 buffer, size); in TPMU_SIG_SCHEME_Marshal()
7084 (TPMS_SIG_SCHEME_ECSCHNORR*)&source->ecschnorr, buffer, size); in TPMU_SIG_SCHEME_Marshal()
7089 size); in TPMU_SIG_SCHEME_Marshal()
7101 INT32* size, in TPMU_SIG_SCHEME_Unmarshal() argument
7107 (TPMS_SIG_SCHEME_RSASSA*)&target->rsassa, buffer, size); in TPMU_SIG_SCHEME_Unmarshal()
7112 (TPMS_SIG_SCHEME_RSAPSS*)&target->rsapss, buffer, size); in TPMU_SIG_SCHEME_Unmarshal()
7117 (TPMS_SIG_SCHEME_ECDSA*)&target->ecdsa, buffer, size); in TPMU_SIG_SCHEME_Unmarshal()
7122 (TPMS_SIG_SCHEME_ECDAA*)&target->ecdaa, buffer, size); in TPMU_SIG_SCHEME_Unmarshal()
7127 buffer, size); in TPMU_SIG_SCHEME_Unmarshal()
7132 (TPMS_SIG_SCHEME_ECSCHNORR*)&target->ecschnorr, buffer, size); in TPMU_SIG_SCHEME_Unmarshal()
7137 buffer, size); in TPMU_SIG_SCHEME_Unmarshal()
7149 INT32* size) { in TPMT_SIG_SCHEME_Marshal() argument
7151 total_size += TPMI_ALG_SIG_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_SIG_SCHEME_Marshal()
7153 TPMU_SIG_SCHEME_Marshal(&source->details, buffer, size, source->scheme); in TPMT_SIG_SCHEME_Marshal()
7159 INT32* size) { in TPMT_SIG_SCHEME_Unmarshal() argument
7161 result = TPMI_ALG_SIG_SCHEME_Unmarshal(&target->scheme, buffer, size, TRUE); in TPMT_SIG_SCHEME_Unmarshal()
7166 TPMU_SIG_SCHEME_Unmarshal(&target->details, buffer, size, target->scheme); in TPMT_SIG_SCHEME_Unmarshal()
7173 UINT16 TPMT_SYM_DEF_Marshal(TPMT_SYM_DEF* source, BYTE** buffer, INT32* size) { in TPMT_SYM_DEF_Marshal() argument
7175 total_size += TPMI_ALG_SYM_Marshal(&source->algorithm, buffer, size); in TPMT_SYM_DEF_Marshal()
7176 total_size += TPMU_SYM_KEY_BITS_Marshal(&source->keyBits, buffer, size, in TPMT_SYM_DEF_Marshal()
7179 TPMU_SYM_MODE_Marshal(&source->mode, buffer, size, source->algorithm); in TPMT_SYM_DEF_Marshal()
7185 INT32* size) { in TPMT_SYM_DEF_Unmarshal() argument
7187 result = TPMI_ALG_SYM_Unmarshal(&target->algorithm, buffer, size, TRUE); in TPMT_SYM_DEF_Unmarshal()
7191 result = TPMU_SYM_KEY_BITS_Unmarshal(&target->keyBits, buffer, size, in TPMT_SYM_DEF_Unmarshal()
7197 TPMU_SYM_MODE_Unmarshal(&target->mode, buffer, size, target->algorithm); in TPMT_SYM_DEF_Unmarshal()
7204 UINT16 TPM_ST_Marshal(TPM_ST* source, BYTE** buffer, INT32* size) { in TPM_ST_Marshal() argument
7205 return uint16_t_Marshal(source, buffer, size); in TPM_ST_Marshal()
7208 TPM_RC TPM_ST_Unmarshal(TPM_ST* target, BYTE** buffer, INT32* size) { in TPM_ST_Unmarshal() argument
7210 result = uint16_t_Unmarshal(target, buffer, size); in TPM_ST_Unmarshal()
7268 UINT16 TPMT_TK_AUTH_Marshal(TPMT_TK_AUTH* source, BYTE** buffer, INT32* size) { in TPMT_TK_AUTH_Marshal() argument
7270 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_AUTH_Marshal()
7271 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_AUTH_Marshal()
7272 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_AUTH_Marshal()
7278 INT32* size) { in TPMT_TK_AUTH_Unmarshal() argument
7280 result = TPM_ST_Unmarshal(&target->tag, buffer, size); in TPMT_TK_AUTH_Unmarshal()
7284 result = TPMI_RH_HIERARCHY_Unmarshal(&target->hierarchy, buffer, size, TRUE); in TPMT_TK_AUTH_Unmarshal()
7288 result = TPM2B_DIGEST_Unmarshal(&target->digest, buffer, size); in TPMT_TK_AUTH_Unmarshal()
7297 INT32* size) { in TPMT_TK_CREATION_Marshal() argument
7299 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_CREATION_Marshal()
7300 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_CREATION_Marshal()
7301 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_CREATION_Marshal()
7307 INT32* size) { in TPMT_TK_CREATION_Unmarshal() argument
7309 result = TPM_ST_Unmarshal(&target->tag, buffer, size); in TPMT_TK_CREATION_Unmarshal()
7313 result = TPMI_RH_HIERARCHY_Unmarshal(&target->hierarchy, buffer, size, TRUE); in TPMT_TK_CREATION_Unmarshal()
7317 result = TPM2B_DIGEST_Unmarshal(&target->digest, buffer, size); in TPMT_TK_CREATION_Unmarshal()
7326 INT32* size) { in TPMT_TK_HASHCHECK_Marshal() argument
7328 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_HASHCHECK_Marshal()
7329 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_HASHCHECK_Marshal()
7330 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_HASHCHECK_Marshal()
7336 INT32* size) { in TPMT_TK_HASHCHECK_Unmarshal() argument
7338 result = TPM_ST_Unmarshal(&target->tag, buffer, size); in TPMT_TK_HASHCHECK_Unmarshal()
7342 result = TPMI_RH_HIERARCHY_Unmarshal(&target->hierarchy, buffer, size, TRUE); in TPMT_TK_HASHCHECK_Unmarshal()
7346 result = TPM2B_DIGEST_Unmarshal(&target->digest, buffer, size); in TPMT_TK_HASHCHECK_Unmarshal()
7355 INT32* size) { in TPMT_TK_VERIFIED_Marshal() argument
7357 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_VERIFIED_Marshal()
7358 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_VERIFIED_Marshal()
7359 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_VERIFIED_Marshal()
7365 INT32* size) { in TPMT_TK_VERIFIED_Unmarshal() argument
7367 result = TPM_ST_Unmarshal(&target->tag, buffer, size); in TPMT_TK_VERIFIED_Unmarshal()
7371 result = TPMI_RH_HIERARCHY_Unmarshal(&target->hierarchy, buffer, size, TRUE); in TPMT_TK_VERIFIED_Unmarshal()
7375 result = TPM2B_DIGEST_Unmarshal(&target->digest, buffer, size); in TPMT_TK_VERIFIED_Unmarshal()
7384 INT32* size, in TPMU_SYM_DETAILS_Marshal() argument
7413 INT32* size, in TPMU_SYM_DETAILS_Unmarshal() argument
7442 INT32* size) { in TPM_ALGORITHM_ID_Marshal() argument
7443 return uint32_t_Marshal(source, buffer, size); in TPM_ALGORITHM_ID_Marshal()
7448 INT32* size) { in TPM_ALGORITHM_ID_Unmarshal() argument
7449 return uint32_t_Unmarshal(target, buffer, size); in TPM_ALGORITHM_ID_Unmarshal()
7454 INT32* size) { in TPM_AUTHORIZATION_SIZE_Marshal() argument
7455 return uint32_t_Marshal(source, buffer, size); in TPM_AUTHORIZATION_SIZE_Marshal()
7460 INT32* size) { in TPM_AUTHORIZATION_SIZE_Unmarshal() argument
7461 return uint32_t_Unmarshal(target, buffer, size); in TPM_AUTHORIZATION_SIZE_Unmarshal()
7466 INT32* size) { in TPM_CLOCK_ADJUST_Marshal() argument
7467 return int8_t_Marshal(source, buffer, size); in TPM_CLOCK_ADJUST_Marshal()
7472 INT32* size) { in TPM_CLOCK_ADJUST_Unmarshal() argument
7474 result = int8_t_Unmarshal(target, buffer, size); in TPM_CLOCK_ADJUST_Unmarshal()
7502 UINT16 TPM_EO_Marshal(TPM_EO* source, BYTE** buffer, INT32* size) { in TPM_EO_Marshal() argument
7503 return uint16_t_Marshal(source, buffer, size); in TPM_EO_Marshal()
7506 TPM_RC TPM_EO_Unmarshal(TPM_EO* target, BYTE** buffer, INT32* size) { in TPM_EO_Unmarshal() argument
7508 result = uint16_t_Unmarshal(target, buffer, size); in TPM_EO_Unmarshal()
7551 UINT16 TPM_HC_Marshal(TPM_HC* source, BYTE** buffer, INT32* size) { in TPM_HC_Marshal() argument
7552 return uint32_t_Marshal(source, buffer, size); in TPM_HC_Marshal()
7555 TPM_RC TPM_HC_Unmarshal(TPM_HC* target, BYTE** buffer, INT32* size) { in TPM_HC_Unmarshal() argument
7557 result = uint32_t_Unmarshal(target, buffer, size); in TPM_HC_Unmarshal()
7651 UINT16 TPM_HT_Marshal(TPM_HT* source, BYTE** buffer, INT32* size) { in TPM_HT_Marshal() argument
7652 return uint8_t_Marshal(source, buffer, size); in TPM_HT_Marshal()
7655 TPM_RC TPM_HT_Unmarshal(TPM_HT* target, BYTE** buffer, INT32* size) { in TPM_HT_Unmarshal() argument
7657 result = uint8_t_Unmarshal(target, buffer, size); in TPM_HT_Unmarshal()
7691 UINT16 TPM_KEY_SIZE_Marshal(TPM_KEY_SIZE* source, BYTE** buffer, INT32* size) { in TPM_KEY_SIZE_Marshal() argument
7692 return uint16_t_Marshal(source, buffer, size); in TPM_KEY_SIZE_Marshal()
7697 INT32* size) { in TPM_KEY_SIZE_Unmarshal() argument
7698 return uint16_t_Unmarshal(target, buffer, size); in TPM_KEY_SIZE_Unmarshal()
7703 INT32* size) { in TPM_MODIFIER_INDICATOR_Marshal() argument
7704 return uint32_t_Marshal(source, buffer, size); in TPM_MODIFIER_INDICATOR_Marshal()
7709 INT32* size) { in TPM_MODIFIER_INDICATOR_Unmarshal() argument
7710 return uint32_t_Unmarshal(target, buffer, size); in TPM_MODIFIER_INDICATOR_Unmarshal()
7713 UINT16 TPM_NV_INDEX_Marshal(TPM_NV_INDEX* source, BYTE** buffer, INT32* size) { in TPM_NV_INDEX_Marshal() argument
7714 return uint32_t_Marshal((uint32_t*)source, buffer, size); in TPM_NV_INDEX_Marshal()
7719 INT32* size) { in TPM_NV_INDEX_Unmarshal() argument
7721 result = uint32_t_Unmarshal((uint32_t*)target, buffer, size); in TPM_NV_INDEX_Unmarshal()
7730 INT32* size) { in TPM_PARAMETER_SIZE_Marshal() argument
7731 return uint32_t_Marshal(source, buffer, size); in TPM_PARAMETER_SIZE_Marshal()
7736 INT32* size) { in TPM_PARAMETER_SIZE_Unmarshal() argument
7737 return uint32_t_Unmarshal(target, buffer, size); in TPM_PARAMETER_SIZE_Unmarshal()
7740 UINT16 TPM_PS_Marshal(TPM_PS* source, BYTE** buffer, INT32* size) { in TPM_PS_Marshal() argument
7741 return uint32_t_Marshal(source, buffer, size); in TPM_PS_Marshal()
7744 TPM_RC TPM_PS_Unmarshal(TPM_PS* target, BYTE** buffer, INT32* size) { in TPM_PS_Unmarshal() argument
7746 result = uint32_t_Unmarshal(target, buffer, size); in TPM_PS_Unmarshal()
7801 UINT16 TPM_PT_PCR_Marshal(TPM_PT_PCR* source, BYTE** buffer, INT32* size) { in TPM_PT_PCR_Marshal() argument
7802 return uint32_t_Marshal(source, buffer, size); in TPM_PT_PCR_Marshal()
7805 TPM_RC TPM_PT_PCR_Unmarshal(TPM_PT_PCR* target, BYTE** buffer, INT32* size) { in TPM_PT_PCR_Unmarshal() argument
7807 result = uint32_t_Unmarshal(target, buffer, size); in TPM_PT_PCR_Unmarshal()
7865 UINT16 TPM_RC_Marshal(TPM_RC* source, BYTE** buffer, INT32* size) { in TPM_RC_Marshal() argument
7866 return uint32_t_Marshal(source, buffer, size); in TPM_RC_Marshal()
7869 TPM_RC TPM_RC_Unmarshal(TPM_RC* target, BYTE** buffer, INT32* size) { in TPM_RC_Unmarshal() argument
7871 result = uint32_t_Unmarshal(target, buffer, size); in TPM_RC_Unmarshal()
8241 UINT16 TPM_RH_Marshal(TPM_RH* source, BYTE** buffer, INT32* size) { in TPM_RH_Marshal() argument
8242 return uint32_t_Marshal(source, buffer, size); in TPM_RH_Marshal()
8245 TPM_RC TPM_RH_Unmarshal(TPM_RH* target, BYTE** buffer, INT32* size) { in TPM_RH_Unmarshal() argument
8247 result = uint32_t_Unmarshal(target, buffer, size); in TPM_RH_Unmarshal()
8308 UINT16 TPM_SE_Marshal(TPM_SE* source, BYTE** buffer, INT32* size) { in TPM_SE_Marshal() argument
8309 return uint8_t_Marshal(source, buffer, size); in TPM_SE_Marshal()
8312 TPM_RC TPM_SE_Unmarshal(TPM_SE* target, BYTE** buffer, INT32* size) { in TPM_SE_Unmarshal() argument
8314 result = uint8_t_Unmarshal(target, buffer, size); in TPM_SE_Unmarshal()
8330 UINT16 TPM_SPEC_Marshal(TPM_SPEC* source, BYTE** buffer, INT32* size) { in TPM_SPEC_Marshal() argument
8331 return uint32_t_Marshal(source, buffer, size); in TPM_SPEC_Marshal()
8334 TPM_RC TPM_SPEC_Unmarshal(TPM_SPEC* target, BYTE** buffer, INT32* size) { in TPM_SPEC_Unmarshal() argument
8336 result = uint32_t_Unmarshal(target, buffer, size); in TPM_SPEC_Unmarshal()
8358 UINT16 TPM_SU_Marshal(TPM_SU* source, BYTE** buffer, INT32* size) { in TPM_SU_Marshal() argument
8359 return uint16_t_Marshal(source, buffer, size); in TPM_SU_Marshal()
8362 TPM_RC TPM_SU_Unmarshal(TPM_SU* target, BYTE** buffer, INT32* size) { in TPM_SU_Unmarshal() argument
8364 result = uint16_t_Unmarshal(target, buffer, size); in TPM_SU_Unmarshal()
8377 UINT16 _ID_OBJECT_Marshal(_ID_OBJECT* source, BYTE** buffer, INT32* size) { in _ID_OBJECT_Marshal() argument
8379 total_size += TPM2B_DIGEST_Marshal(&source->integrityHMAC, buffer, size); in _ID_OBJECT_Marshal()
8380 total_size += TPM2B_DIGEST_Marshal(&source->encIdentity, buffer, size); in _ID_OBJECT_Marshal()
8384 TPM_RC _ID_OBJECT_Unmarshal(_ID_OBJECT* target, BYTE** buffer, INT32* size) { in _ID_OBJECT_Unmarshal() argument
8386 result = TPM2B_DIGEST_Unmarshal(&target->integrityHMAC, buffer, size); in _ID_OBJECT_Unmarshal()
8390 result = TPM2B_DIGEST_Unmarshal(&target->encIdentity, buffer, size); in _ID_OBJECT_Unmarshal()
8397 UINT16 _PRIVATE_Marshal(_PRIVATE* source, BYTE** buffer, INT32* size) { in _PRIVATE_Marshal() argument
8399 total_size += TPM2B_DIGEST_Marshal(&source->integrityOuter, buffer, size); in _PRIVATE_Marshal()
8400 total_size += TPM2B_DIGEST_Marshal(&source->integrityInner, buffer, size); in _PRIVATE_Marshal()
8401 total_size += TPMT_SENSITIVE_Marshal(&source->sensitive, buffer, size); in _PRIVATE_Marshal()
8405 TPM_RC _PRIVATE_Unmarshal(_PRIVATE* target, BYTE** buffer, INT32* size) { in _PRIVATE_Unmarshal() argument
8407 result = TPM2B_DIGEST_Unmarshal(&target->integrityOuter, buffer, size); in _PRIVATE_Unmarshal()
8411 result = TPM2B_DIGEST_Unmarshal(&target->integrityInner, buffer, size); in _PRIVATE_Unmarshal()
8415 result = TPMT_SENSITIVE_Unmarshal(&target->sensitive, buffer, size); in _PRIVATE_Unmarshal()