Lines Matching refs:total_size
442 UINT16 total_size = 0; in TPM2B_ATTEST_Marshal() local
444 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ATTEST_Marshal()
446 total_size += BYTE_Marshal(&source->t.attestationData[i], buffer, size); in TPM2B_ATTEST_Marshal()
448 return total_size; in TPM2B_ATTEST_Marshal()
476 UINT16 total_size = 0; in TPM2B_DIGEST_Marshal() local
478 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_DIGEST_Marshal()
480 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_DIGEST_Marshal()
482 return total_size; in TPM2B_DIGEST_Marshal()
520 UINT16 total_size = 0; in TPM2B_CONTEXT_DATA_Marshal() local
522 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_CONTEXT_DATA_Marshal()
524 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_CONTEXT_DATA_Marshal()
526 return total_size; in TPM2B_CONTEXT_DATA_Marshal()
556 UINT16 total_size = 0; in TPM2B_CONTEXT_SENSITIVE_Marshal() local
558 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_CONTEXT_SENSITIVE_Marshal()
560 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_CONTEXT_SENSITIVE_Marshal()
562 return total_size; in TPM2B_CONTEXT_SENSITIVE_Marshal()
783 UINT16 total_size = 0; in TPM2B_DATA_Marshal() local
785 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_DATA_Marshal()
787 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_DATA_Marshal()
789 return total_size; in TPM2B_DATA_Marshal()
832 UINT16 total_size = 0; in TPM2B_NAME_Marshal() local
834 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_NAME_Marshal()
836 total_size += BYTE_Marshal(&source->t.name[i], buffer, size); in TPM2B_NAME_Marshal()
838 return total_size; in TPM2B_NAME_Marshal()
921 UINT16 total_size = 0; in TPMS_PCR_SELECTION_Marshal() local
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()
928 return total_size; in TPMS_PCR_SELECTION_Marshal()
970 UINT16 total_size = 0; in TPML_PCR_SELECTION_Marshal() local
972 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_PCR_SELECTION_Marshal()
974 total_size += in TPML_PCR_SELECTION_Marshal()
977 return total_size; in TPML_PCR_SELECTION_Marshal()
1005 UINT16 total_size = 0; in TPMS_CREATION_DATA_Marshal() local
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()
1013 return total_size; in TPMS_CREATION_DATA_Marshal()
1054 UINT16 total_size = 0; in TPM2B_CREATION_DATA_Marshal() local
1055 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_CREATION_DATA_Marshal()
1056 total_size += in TPM2B_CREATION_DATA_Marshal()
1059 BYTE* size_location = *buffer - total_size; in TPM2B_CREATION_DATA_Marshal()
1061 UINT16 payload_size = total_size - (UINT16)size_field_size; in TPM2B_CREATION_DATA_Marshal()
1064 return total_size; in TPM2B_CREATION_DATA_Marshal()
1094 UINT16 total_size = 0; in TPM2B_DIGEST_VALUES_Marshal() local
1096 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_DIGEST_VALUES_Marshal()
1098 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_DIGEST_VALUES_Marshal()
1100 return total_size; in TPM2B_DIGEST_VALUES_Marshal()
1130 UINT16 total_size = 0; in TPM2B_ECC_PARAMETER_Marshal() local
1132 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ECC_PARAMETER_Marshal()
1134 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_ECC_PARAMETER_Marshal()
1136 return total_size; in TPM2B_ECC_PARAMETER_Marshal()
1166 UINT16 total_size = 0; in TPMS_ECC_POINT_Marshal() local
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()
1169 return total_size; in TPMS_ECC_POINT_Marshal()
1190 UINT16 total_size = 0; in TPM2B_ECC_POINT_Marshal() local
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()
1194 BYTE* size_location = *buffer - total_size; in TPM2B_ECC_POINT_Marshal()
1196 UINT16 payload_size = total_size - (UINT16)size_field_size; in TPM2B_ECC_POINT_Marshal()
1199 return total_size; in TPM2B_ECC_POINT_Marshal()
1229 UINT16 total_size = 0; in TPM2B_ENCRYPTED_SECRET_Marshal() local
1231 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ENCRYPTED_SECRET_Marshal()
1233 total_size += BYTE_Marshal(&source->t.secret[i], buffer, size); in TPM2B_ENCRYPTED_SECRET_Marshal()
1235 return total_size; in TPM2B_ENCRYPTED_SECRET_Marshal()
1263 UINT16 total_size = 0; in TPM2B_EVENT_Marshal() local
1265 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_EVENT_Marshal()
1267 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_EVENT_Marshal()
1269 return total_size; in TPM2B_EVENT_Marshal()
1297 UINT16 total_size = 0; in TPM2B_ID_OBJECT_Marshal() local
1299 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ID_OBJECT_Marshal()
1301 total_size += BYTE_Marshal(&source->t.credential[i], buffer, size); in TPM2B_ID_OBJECT_Marshal()
1303 return total_size; in TPM2B_ID_OBJECT_Marshal()
1331 UINT16 total_size = 0; in TPM2B_IV_Marshal() local
1333 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_IV_Marshal()
1335 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_IV_Marshal()
1337 return total_size; in TPM2B_IV_Marshal()
1365 UINT16 total_size = 0; in TPM2B_MAX_BUFFER_Marshal() local
1367 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_MAX_BUFFER_Marshal()
1369 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_MAX_BUFFER_Marshal()
1371 return total_size; in TPM2B_MAX_BUFFER_Marshal()
1401 UINT16 total_size = 0; in TPM2B_MAX_NV_BUFFER_Marshal() local
1403 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_MAX_NV_BUFFER_Marshal()
1405 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_MAX_NV_BUFFER_Marshal()
1407 return total_size; in TPM2B_MAX_NV_BUFFER_Marshal()
1488 UINT16 total_size = 0; in TPMS_NV_PUBLIC_Marshal() local
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()
1494 return total_size; in TPMS_NV_PUBLIC_Marshal()
1530 UINT16 total_size = 0; in TPM2B_NV_PUBLIC_Marshal() local
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()
1534 BYTE* size_location = *buffer - total_size; in TPM2B_NV_PUBLIC_Marshal()
1536 UINT16 payload_size = total_size - (UINT16)size_field_size; in TPM2B_NV_PUBLIC_Marshal()
1539 return total_size; in TPM2B_NV_PUBLIC_Marshal()
1581 UINT16 total_size = 0; in TPM2B_PRIVATE_Marshal() local
1583 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PRIVATE_Marshal()
1585 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PRIVATE_Marshal()
1587 return total_size; in TPM2B_PRIVATE_Marshal()
1617 UINT16 total_size = 0; in TPM2B_PRIVATE_KEY_RSA_Marshal() local
1619 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PRIVATE_KEY_RSA_Marshal()
1621 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PRIVATE_KEY_RSA_Marshal()
1623 return total_size; in TPM2B_PRIVATE_KEY_RSA_Marshal()
1654 UINT16 total_size = 0; in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal() local
1656 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal()
1658 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal()
1660 return total_size; in TPM2B_PRIVATE_VENDOR_SPECIFIC_Marshal()
1756 UINT16 total_size = 0; in TPM2B_PUBLIC_KEY_RSA_Marshal() local
1758 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PUBLIC_KEY_RSA_Marshal()
1760 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_PUBLIC_KEY_RSA_Marshal()
1762 return total_size; in TPM2B_PUBLIC_KEY_RSA_Marshal()
2156 UINT16 total_size = 0; in TPMT_SYM_DEF_OBJECT_Marshal() local
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()
2160 total_size += in TPMT_SYM_DEF_OBJECT_Marshal()
2162 return total_size; in TPMT_SYM_DEF_OBJECT_Marshal()
2231 UINT16 total_size = 0; in TPMS_SCHEME_HASH_Marshal() local
2232 total_size += TPMI_ALG_HASH_Marshal(&source->hashAlg, buffer, size); in TPMS_SCHEME_HASH_Marshal()
2233 return total_size; in TPMS_SCHEME_HASH_Marshal()
2286 UINT16 total_size = 0; in TPMS_SCHEME_ECDAA_Marshal() local
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()
2289 return total_size; in TPMS_SCHEME_ECDAA_Marshal()
2368 UINT16 total_size = 0; in TPMS_EMPTY_Marshal() local
2369 return total_size; in TPMS_EMPTY_Marshal()
2532 UINT16 total_size = 0; in TPMT_RSA_SCHEME_Marshal() local
2533 total_size += TPMI_ALG_RSA_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_RSA_SCHEME_Marshal()
2534 total_size += in TPMT_RSA_SCHEME_Marshal()
2536 return total_size; in TPMT_RSA_SCHEME_Marshal()
2588 UINT16 total_size = 0; in TPMS_RSA_PARMS_Marshal() local
2589 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->symmetric, buffer, size); in TPMS_RSA_PARMS_Marshal()
2590 total_size += TPMT_RSA_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_RSA_PARMS_Marshal()
2591 total_size += TPMI_RSA_KEY_BITS_Marshal(&source->keyBits, buffer, size); in TPMS_RSA_PARMS_Marshal()
2592 total_size += UINT32_Marshal(&source->exponent, buffer, size); in TPMS_RSA_PARMS_Marshal()
2593 return total_size; in TPMS_RSA_PARMS_Marshal()
2622 UINT16 total_size = 0; in TPMS_SYMCIPHER_PARMS_Marshal() local
2623 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->sym, buffer, size); in TPMS_SYMCIPHER_PARMS_Marshal()
2624 return total_size; in TPMS_SYMCIPHER_PARMS_Marshal()
2700 UINT16 total_size = 0; in TPMT_ASYM_SCHEME_Marshal() local
2701 total_size += TPMI_ALG_ASYM_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_ASYM_SCHEME_Marshal()
2702 total_size += in TPMT_ASYM_SCHEME_Marshal()
2704 return total_size; in TPMT_ASYM_SCHEME_Marshal()
2726 UINT16 total_size = 0; in TPMS_ASYM_PARMS_Marshal() local
2727 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->symmetric, buffer, size); in TPMS_ASYM_PARMS_Marshal()
2728 total_size += TPMT_ASYM_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_ASYM_PARMS_Marshal()
2729 return total_size; in TPMS_ASYM_PARMS_Marshal()
2903 UINT16 total_size = 0; in TPMT_KDF_SCHEME_Marshal() local
2904 total_size += TPMI_ALG_KDF_Marshal(&source->scheme, buffer, size); in TPMT_KDF_SCHEME_Marshal()
2905 total_size += in TPMT_KDF_SCHEME_Marshal()
2907 return total_size; in TPMT_KDF_SCHEME_Marshal()
2976 UINT16 total_size = 0; in TPMT_ECC_SCHEME_Marshal() local
2977 total_size += TPMI_ALG_ECC_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_ECC_SCHEME_Marshal()
2978 total_size += in TPMT_ECC_SCHEME_Marshal()
2980 return total_size; in TPMT_ECC_SCHEME_Marshal()
3032 UINT16 total_size = 0; in TPMS_ECC_PARMS_Marshal() local
3033 total_size += TPMT_SYM_DEF_OBJECT_Marshal(&source->symmetric, buffer, size); in TPMS_ECC_PARMS_Marshal()
3034 total_size += TPMT_ECC_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_ECC_PARMS_Marshal()
3035 total_size += TPMI_ECC_CURVE_Marshal(&source->curveID, buffer, size); in TPMS_ECC_PARMS_Marshal()
3036 total_size += TPMT_KDF_SCHEME_Marshal(&source->kdf, buffer, size); in TPMS_ECC_PARMS_Marshal()
3037 return total_size; in TPMS_ECC_PARMS_Marshal()
3113 UINT16 total_size = 0; in TPMS_SCHEME_XOR_Marshal() local
3114 total_size += TPMI_ALG_HASH_Marshal(&source->hashAlg, buffer, size); in TPMS_SCHEME_XOR_Marshal()
3115 total_size += TPMI_ALG_KDF_Marshal(&source->kdf, buffer, size); in TPMS_SCHEME_XOR_Marshal()
3116 return total_size; in TPMS_SCHEME_XOR_Marshal()
3183 UINT16 total_size = 0; in TPMT_KEYEDHASH_SCHEME_Marshal() local
3184 total_size += in TPMT_KEYEDHASH_SCHEME_Marshal()
3186 total_size += TPMU_SCHEME_KEYEDHASH_Marshal(&source->details, buffer, size, in TPMT_KEYEDHASH_SCHEME_Marshal()
3188 return total_size; in TPMT_KEYEDHASH_SCHEME_Marshal()
3211 UINT16 total_size = 0; in TPMS_KEYEDHASH_PARMS_Marshal() local
3212 total_size += TPMT_KEYEDHASH_SCHEME_Marshal(&source->scheme, buffer, size); in TPMS_KEYEDHASH_PARMS_Marshal()
3213 return total_size; in TPMS_KEYEDHASH_PARMS_Marshal()
3286 UINT16 total_size = 0; in TPMT_PUBLIC_Marshal() local
3287 total_size += TPMI_ALG_PUBLIC_Marshal(&source->type, buffer, size); in TPMT_PUBLIC_Marshal()
3288 total_size += TPMI_ALG_HASH_Marshal(&source->nameAlg, buffer, size); in TPMT_PUBLIC_Marshal()
3289 total_size += TPMA_OBJECT_Marshal(&source->objectAttributes, buffer, size); in TPMT_PUBLIC_Marshal()
3290 total_size += TPM2B_DIGEST_Marshal(&source->authPolicy, buffer, size); in TPMT_PUBLIC_Marshal()
3291 total_size += TPMU_PUBLIC_PARMS_Marshal(&source->parameters, buffer, size, in TPMT_PUBLIC_Marshal()
3293 total_size += in TPMT_PUBLIC_Marshal()
3295 return total_size; in TPMT_PUBLIC_Marshal()
3330 UINT16 total_size = 0; in TPM2B_PUBLIC_Marshal() local
3331 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_PUBLIC_Marshal()
3332 total_size += TPMT_PUBLIC_Marshal(&source->t.publicArea, buffer, size); in TPM2B_PUBLIC_Marshal()
3334 BYTE* size_location = *buffer - total_size; in TPM2B_PUBLIC_Marshal()
3336 UINT16 payload_size = total_size - (UINT16)size_field_size; in TPM2B_PUBLIC_Marshal()
3339 return total_size; in TPM2B_PUBLIC_Marshal()
3369 UINT16 total_size = 0; in TPM2B_SENSITIVE_DATA_Marshal() local
3371 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SENSITIVE_DATA_Marshal()
3373 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_SENSITIVE_DATA_Marshal()
3375 return total_size; in TPM2B_SENSITIVE_DATA_Marshal()
3405 UINT16 total_size = 0; in TPM2B_SYM_KEY_Marshal() local
3407 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SYM_KEY_Marshal()
3409 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_SYM_KEY_Marshal()
3411 return total_size; in TPM2B_SYM_KEY_Marshal()
3498 UINT16 total_size = 0; in TPMT_SENSITIVE_Marshal() local
3499 total_size += TPMI_ALG_PUBLIC_Marshal(&source->sensitiveType, buffer, size); in TPMT_SENSITIVE_Marshal()
3500 total_size += TPM2B_AUTH_Marshal(&source->authValue, buffer, size); in TPMT_SENSITIVE_Marshal()
3501 total_size += TPM2B_DIGEST_Marshal(&source->seedValue, buffer, size); in TPMT_SENSITIVE_Marshal()
3502 total_size += TPMU_SENSITIVE_COMPOSITE_Marshal(&source->sensitive, buffer, in TPMT_SENSITIVE_Marshal()
3504 return total_size; in TPMT_SENSITIVE_Marshal()
3534 UINT16 total_size = 0; in TPM2B_SENSITIVE_Marshal() local
3535 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SENSITIVE_Marshal()
3536 total_size += TPMT_SENSITIVE_Marshal(&source->t.sensitiveArea, buffer, size); in TPM2B_SENSITIVE_Marshal()
3537 return total_size; in TPM2B_SENSITIVE_Marshal()
3561 UINT16 total_size = 0; in TPMS_SENSITIVE_CREATE_Marshal() local
3562 total_size += TPM2B_AUTH_Marshal(&source->userAuth, buffer, size); in TPMS_SENSITIVE_CREATE_Marshal()
3563 total_size += TPM2B_SENSITIVE_DATA_Marshal(&source->data, buffer, size); in TPMS_SENSITIVE_CREATE_Marshal()
3564 return total_size; in TPMS_SENSITIVE_CREATE_Marshal()
3585 UINT16 total_size = 0; in TPM2B_SENSITIVE_CREATE_Marshal() local
3586 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_SENSITIVE_CREATE_Marshal()
3587 total_size += in TPM2B_SENSITIVE_CREATE_Marshal()
3590 BYTE* size_location = *buffer - total_size; in TPM2B_SENSITIVE_CREATE_Marshal()
3592 UINT16 payload_size = total_size - (UINT16)size_field_size; in TPM2B_SENSITIVE_CREATE_Marshal()
3595 return total_size; in TPM2B_SENSITIVE_CREATE_Marshal()
3625 UINT16 total_size = 0; in TPM2B_TIMEOUT_Marshal() local
3627 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_TIMEOUT_Marshal()
3629 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_TIMEOUT_Marshal()
3631 return total_size; in TPM2B_TIMEOUT_Marshal()
4580 UINT16 total_size = 0; in TPML_ALG_Marshal() local
4582 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_ALG_Marshal()
4584 total_size += TPM_ALG_ID_Marshal(&source->algorithms[i], buffer, size); in TPML_ALG_Marshal()
4586 return total_size; in TPML_ALG_Marshal()
4611 UINT16 total_size = 0; in TPMS_ALG_PROPERTY_Marshal() local
4612 total_size += TPM_ALG_ID_Marshal(&source->alg, buffer, size); in TPMS_ALG_PROPERTY_Marshal()
4613 total_size += TPMA_ALGORITHM_Marshal(&source->algProperties, buffer, size); in TPMS_ALG_PROPERTY_Marshal()
4614 return total_size; in TPMS_ALG_PROPERTY_Marshal()
4635 UINT16 total_size = 0; in TPML_ALG_PROPERTY_Marshal() local
4637 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_ALG_PROPERTY_Marshal()
4639 total_size += in TPML_ALG_PROPERTY_Marshal()
4642 return total_size; in TPML_ALG_PROPERTY_Marshal()
5241 UINT16 total_size = 0; in TPML_CC_Marshal() local
5243 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_CC_Marshal()
5245 total_size += TPM_CC_Marshal(&source->commandCodes[i], buffer, size); in TPML_CC_Marshal()
5247 return total_size; in TPML_CC_Marshal()
5270 UINT16 total_size = 0; in TPML_CCA_Marshal() local
5272 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_CCA_Marshal()
5274 total_size += TPMA_CC_Marshal(&source->commandAttributes[i], buffer, size); in TPML_CCA_Marshal()
5276 return total_size; in TPML_CCA_Marshal()
5299 UINT16 total_size = 0; in TPML_DIGEST_Marshal() local
5301 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_DIGEST_Marshal()
5303 total_size += TPM2B_DIGEST_Marshal(&source->digests[i], buffer, size); in TPML_DIGEST_Marshal()
5305 return total_size; in TPML_DIGEST_Marshal()
5335 UINT16 total_size = 0; in TPMU_HA_Marshal() local
5340 total_size += BYTE_Marshal(&source->sha[i], buffer, size); in TPMU_HA_Marshal()
5342 return total_size; in TPMU_HA_Marshal()
5347 total_size += BYTE_Marshal(&source->sha1[i], buffer, size); in TPMU_HA_Marshal()
5349 return total_size; in TPMU_HA_Marshal()
5354 total_size += BYTE_Marshal(&source->sha256[i], buffer, size); in TPMU_HA_Marshal()
5356 return total_size; in TPMU_HA_Marshal()
5361 total_size += BYTE_Marshal(&source->sha384[i], buffer, size); in TPMU_HA_Marshal()
5363 return total_size; in TPMU_HA_Marshal()
5368 total_size += BYTE_Marshal(&source->sha512[i], buffer, size); in TPMU_HA_Marshal()
5370 return total_size; in TPMU_HA_Marshal()
5375 total_size += BYTE_Marshal(&source->sm3_256[i], buffer, size); in TPMU_HA_Marshal()
5377 return total_size; in TPMU_HA_Marshal()
5463 UINT16 total_size = 0; in TPMT_HA_Marshal() local
5464 total_size += TPMI_ALG_HASH_Marshal(&source->hashAlg, buffer, size); in TPMT_HA_Marshal()
5465 total_size += TPMU_HA_Marshal(&source->digest, buffer, size, source->hashAlg); in TPMT_HA_Marshal()
5466 return total_size; in TPMT_HA_Marshal()
5485 UINT16 total_size = 0; in TPML_DIGEST_VALUES_Marshal() local
5487 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_DIGEST_VALUES_Marshal()
5489 total_size += TPMT_HA_Marshal(&source->digests[i], buffer, size); in TPML_DIGEST_VALUES_Marshal()
5491 return total_size; in TPML_DIGEST_VALUES_Marshal()
5562 UINT16 total_size = 0; in TPML_ECC_CURVE_Marshal() local
5564 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_ECC_CURVE_Marshal()
5566 total_size += TPM_ECC_CURVE_Marshal(&source->eccCurves[i], buffer, size); in TPML_ECC_CURVE_Marshal()
5568 return total_size; in TPML_ECC_CURVE_Marshal()
5601 UINT16 total_size = 0; in TPML_HANDLE_Marshal() local
5603 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_HANDLE_Marshal()
5605 total_size += TPM_HANDLE_Marshal(&source->handle[i], buffer, size); in TPML_HANDLE_Marshal()
5607 return total_size; in TPML_HANDLE_Marshal()
5852 UINT16 total_size = 0; in TPMS_TAGGED_PCR_SELECT_Marshal() local
5854 total_size += TPM_PT_Marshal(&source->tag, buffer, size); in TPMS_TAGGED_PCR_SELECT_Marshal()
5855 total_size += UINT8_Marshal(&source->sizeofSelect, buffer, size); in TPMS_TAGGED_PCR_SELECT_Marshal()
5857 total_size += BYTE_Marshal(&source->pcrSelect[i], buffer, size); in TPMS_TAGGED_PCR_SELECT_Marshal()
5859 return total_size; in TPMS_TAGGED_PCR_SELECT_Marshal()
5893 UINT16 total_size = 0; in TPML_TAGGED_PCR_PROPERTY_Marshal() local
5895 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_TAGGED_PCR_PROPERTY_Marshal()
5897 total_size += in TPML_TAGGED_PCR_PROPERTY_Marshal()
5900 return total_size; in TPML_TAGGED_PCR_PROPERTY_Marshal()
5928 UINT16 total_size = 0; in TPMS_TAGGED_PROPERTY_Marshal() local
5929 total_size += TPM_PT_Marshal(&source->property, buffer, size); in TPMS_TAGGED_PROPERTY_Marshal()
5930 total_size += UINT32_Marshal(&source->value, buffer, size); in TPMS_TAGGED_PROPERTY_Marshal()
5931 return total_size; in TPMS_TAGGED_PROPERTY_Marshal()
5952 UINT16 total_size = 0; in TPML_TAGGED_TPM_PROPERTY_Marshal() local
5954 total_size += UINT32_Marshal(&source->count, buffer, size); in TPML_TAGGED_TPM_PROPERTY_Marshal()
5956 total_size += in TPML_TAGGED_TPM_PROPERTY_Marshal()
5959 return total_size; in TPML_TAGGED_TPM_PROPERTY_Marshal()
5987 UINT16 total_size = 0; in TPMS_ALGORITHM_DESCRIPTION_Marshal() local
5988 total_size += TPM_ALG_ID_Marshal(&source->alg, buffer, size); in TPMS_ALGORITHM_DESCRIPTION_Marshal()
5989 total_size += TPMA_ALGORITHM_Marshal(&source->attributes, buffer, size); in TPMS_ALGORITHM_DESCRIPTION_Marshal()
5990 return total_size; in TPMS_ALGORITHM_DESCRIPTION_Marshal()
6011 UINT16 total_size = 0; in TPMS_ALGORITHM_DETAIL_ECC_Marshal() local
6012 total_size += TPM_ECC_CURVE_Marshal(&source->curveID, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6013 total_size += UINT16_Marshal(&source->keySize, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6014 total_size += TPMT_KDF_SCHEME_Marshal(&source->kdf, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6015 total_size += TPMT_ECC_SCHEME_Marshal(&source->sign, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6016 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->p, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6017 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->a, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6018 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->b, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6019 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->gX, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6020 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->gY, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6021 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->n, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6022 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->h, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6023 return total_size; in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6108 UINT16 total_size = 0; in TPMS_CREATION_INFO_Marshal() local
6109 total_size += TPM2B_NAME_Marshal(&source->objectName, buffer, size); in TPMS_CREATION_INFO_Marshal()
6110 total_size += TPM2B_DIGEST_Marshal(&source->creationHash, buffer, size); in TPMS_CREATION_INFO_Marshal()
6111 return total_size; in TPMS_CREATION_INFO_Marshal()
6132 UINT16 total_size = 0; in TPMS_COMMAND_AUDIT_INFO_Marshal() local
6133 total_size += UINT64_Marshal(&source->auditCounter, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6134 total_size += TPM_ALG_ID_Marshal(&source->digestAlg, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6135 total_size += TPM2B_DIGEST_Marshal(&source->auditDigest, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6136 total_size += TPM2B_DIGEST_Marshal(&source->commandDigest, buffer, size); in TPMS_COMMAND_AUDIT_INFO_Marshal()
6137 return total_size; in TPMS_COMMAND_AUDIT_INFO_Marshal()
6166 UINT16 total_size = 0; in TPMS_QUOTE_INFO_Marshal() local
6167 total_size += TPML_PCR_SELECTION_Marshal(&source->pcrSelect, buffer, size); in TPMS_QUOTE_INFO_Marshal()
6168 total_size += TPM2B_DIGEST_Marshal(&source->pcrDigest, buffer, size); in TPMS_QUOTE_INFO_Marshal()
6169 return total_size; in TPMS_QUOTE_INFO_Marshal()
6190 UINT16 total_size = 0; in TPMS_CERTIFY_INFO_Marshal() local
6191 total_size += TPM2B_NAME_Marshal(&source->name, buffer, size); in TPMS_CERTIFY_INFO_Marshal()
6192 total_size += TPM2B_NAME_Marshal(&source->qualifiedName, buffer, size); in TPMS_CERTIFY_INFO_Marshal()
6193 return total_size; in TPMS_CERTIFY_INFO_Marshal()
6214 UINT16 total_size = 0; in TPMS_SESSION_AUDIT_INFO_Marshal() local
6215 total_size += TPMI_YES_NO_Marshal(&source->exclusiveSession, buffer, size); in TPMS_SESSION_AUDIT_INFO_Marshal()
6216 total_size += TPM2B_DIGEST_Marshal(&source->sessionDigest, buffer, size); in TPMS_SESSION_AUDIT_INFO_Marshal()
6217 return total_size; in TPMS_SESSION_AUDIT_INFO_Marshal()
6238 UINT16 total_size = 0; in TPMS_CLOCK_INFO_Marshal() local
6239 total_size += UINT64_Marshal(&source->clock, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6240 total_size += UINT32_Marshal(&source->resetCount, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6241 total_size += UINT32_Marshal(&source->restartCount, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6242 total_size += TPMI_YES_NO_Marshal(&source->safe, buffer, size); in TPMS_CLOCK_INFO_Marshal()
6243 return total_size; in TPMS_CLOCK_INFO_Marshal()
6272 UINT16 total_size = 0; in TPMS_TIME_INFO_Marshal() local
6273 total_size += UINT64_Marshal(&source->time, buffer, size); in TPMS_TIME_INFO_Marshal()
6274 total_size += TPMS_CLOCK_INFO_Marshal(&source->clockInfo, buffer, size); in TPMS_TIME_INFO_Marshal()
6275 return total_size; in TPMS_TIME_INFO_Marshal()
6296 UINT16 total_size = 0; in TPMS_TIME_ATTEST_INFO_Marshal() local
6297 total_size += TPMS_TIME_INFO_Marshal(&source->time, buffer, size); in TPMS_TIME_ATTEST_INFO_Marshal()
6298 total_size += UINT64_Marshal(&source->firmwareVersion, buffer, size); in TPMS_TIME_ATTEST_INFO_Marshal()
6299 return total_size; in TPMS_TIME_ATTEST_INFO_Marshal()
6320 UINT16 total_size = 0; in TPMS_NV_CERTIFY_INFO_Marshal() local
6321 total_size += TPM2B_NAME_Marshal(&source->indexName, buffer, size); in TPMS_NV_CERTIFY_INFO_Marshal()
6322 total_size += UINT16_Marshal(&source->offset, buffer, size); in TPMS_NV_CERTIFY_INFO_Marshal()
6323 total_size += TPM2B_MAX_NV_BUFFER_Marshal(&source->nvContents, buffer, size); in TPMS_NV_CERTIFY_INFO_Marshal()
6324 return total_size; in TPMS_NV_CERTIFY_INFO_Marshal()
6407 UINT16 total_size = 0; in TPMS_ATTEST_Marshal() local
6408 total_size += TPM_GENERATED_Marshal(&source->magic, buffer, size); in TPMS_ATTEST_Marshal()
6409 total_size += TPMI_ST_ATTEST_Marshal(&source->type, buffer, size); in TPMS_ATTEST_Marshal()
6410 total_size += TPM2B_NAME_Marshal(&source->qualifiedSigner, buffer, size); in TPMS_ATTEST_Marshal()
6411 total_size += TPM2B_DATA_Marshal(&source->extraData, buffer, size); in TPMS_ATTEST_Marshal()
6412 total_size += TPMS_CLOCK_INFO_Marshal(&source->clockInfo, buffer, size); in TPMS_ATTEST_Marshal()
6413 total_size += UINT64_Marshal(&source->firmwareVersion, buffer, size); in TPMS_ATTEST_Marshal()
6414 total_size += in TPMS_ATTEST_Marshal()
6416 return total_size; in TPMS_ATTEST_Marshal()
6455 UINT16 total_size = 0; in TPMS_AUTH_COMMAND_Marshal() local
6456 total_size += in TPMS_AUTH_COMMAND_Marshal()
6458 total_size += TPM2B_NONCE_Marshal(&source->nonce, buffer, size); in TPMS_AUTH_COMMAND_Marshal()
6459 total_size += TPMA_SESSION_Marshal(&source->sessionAttributes, buffer, size); in TPMS_AUTH_COMMAND_Marshal()
6460 total_size += TPM2B_AUTH_Marshal(&source->hmac, buffer, size); in TPMS_AUTH_COMMAND_Marshal()
6461 return total_size; in TPMS_AUTH_COMMAND_Marshal()
6491 UINT16 total_size = 0; in TPMS_AUTH_RESPONSE_Marshal() local
6492 total_size += TPM2B_NONCE_Marshal(&source->nonce, buffer, size); in TPMS_AUTH_RESPONSE_Marshal()
6493 total_size += TPMA_SESSION_Marshal(&source->sessionAttributes, buffer, size); in TPMS_AUTH_RESPONSE_Marshal()
6494 total_size += TPM2B_AUTH_Marshal(&source->hmac, buffer, size); in TPMS_AUTH_RESPONSE_Marshal()
6495 return total_size; in TPMS_AUTH_RESPONSE_Marshal()
6634 UINT16 total_size = 0; in TPMS_CAPABILITY_DATA_Marshal() local
6635 total_size += TPM_CAP_Marshal(&source->capability, buffer, size); in TPMS_CAPABILITY_DATA_Marshal()
6636 total_size += TPMU_CAPABILITIES_Marshal(&source->data, buffer, size, in TPMS_CAPABILITY_DATA_Marshal()
6638 return total_size; in TPMS_CAPABILITY_DATA_Marshal()
6658 UINT16 total_size = 0; in TPMS_CONTEXT_Marshal() local
6659 total_size += UINT64_Marshal(&source->sequence, buffer, size); in TPMS_CONTEXT_Marshal()
6660 total_size += TPMI_DH_CONTEXT_Marshal(&source->savedHandle, buffer, size); in TPMS_CONTEXT_Marshal()
6661 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMS_CONTEXT_Marshal()
6662 total_size += TPM2B_CONTEXT_DATA_Marshal(&source->contextBlob, buffer, size); in TPMS_CONTEXT_Marshal()
6663 return total_size; in TPMS_CONTEXT_Marshal()
6692 UINT16 total_size = 0; in TPMS_CONTEXT_DATA_Marshal() local
6693 total_size += TPM2B_DIGEST_Marshal(&source->integrity, buffer, size); in TPMS_CONTEXT_DATA_Marshal()
6694 total_size += in TPMS_CONTEXT_DATA_Marshal()
6696 return total_size; in TPMS_CONTEXT_DATA_Marshal()
6717 UINT16 total_size = 0; in TPMS_PCR_SELECT_Marshal() local
6719 total_size += UINT8_Marshal(&source->sizeofSelect, buffer, size); in TPMS_PCR_SELECT_Marshal()
6721 total_size += BYTE_Marshal(&source->pcrSelect[i], buffer, size); in TPMS_PCR_SELECT_Marshal()
6723 return total_size; in TPMS_PCR_SELECT_Marshal()
6753 UINT16 total_size = 0; in TPMS_SIGNATURE_ECC_Marshal() local
6754 total_size += TPMI_ALG_HASH_Marshal(&source->hash, buffer, size); in TPMS_SIGNATURE_ECC_Marshal()
6755 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->signatureR, buffer, size); in TPMS_SIGNATURE_ECC_Marshal()
6756 total_size += TPM2B_ECC_PARAMETER_Marshal(&source->signatureS, buffer, size); in TPMS_SIGNATURE_ECC_Marshal()
6757 return total_size; in TPMS_SIGNATURE_ECC_Marshal()
6818 UINT16 total_size = 0; in TPMS_SIGNATURE_RSA_Marshal() local
6819 total_size += TPMI_ALG_HASH_Marshal(&source->hash, buffer, size); in TPMS_SIGNATURE_RSA_Marshal()
6820 total_size += TPM2B_PUBLIC_KEY_RSA_Marshal(&source->sig, buffer, size); in TPMS_SIGNATURE_RSA_Marshal()
6821 return total_size; in TPMS_SIGNATURE_RSA_Marshal()
6878 UINT16 total_size = 0; in TPMT_PUBLIC_PARMS_Marshal() local
6879 total_size += TPMI_ALG_PUBLIC_Marshal(&source->type, buffer, size); in TPMT_PUBLIC_PARMS_Marshal()
6880 total_size += TPMU_PUBLIC_PARMS_Marshal(&source->parameters, buffer, size, in TPMT_PUBLIC_PARMS_Marshal()
6882 return total_size; in TPMT_PUBLIC_PARMS_Marshal()
6904 UINT16 total_size = 0; in TPMT_RSA_DECRYPT_Marshal() local
6905 total_size += TPMI_ALG_RSA_DECRYPT_Marshal(&source->scheme, buffer, size); in TPMT_RSA_DECRYPT_Marshal()
6906 total_size += in TPMT_RSA_DECRYPT_Marshal()
6908 return total_size; in TPMT_RSA_DECRYPT_Marshal()
7024 UINT16 total_size = 0; in TPMT_SIGNATURE_Marshal() local
7025 total_size += TPMI_ALG_SIG_SCHEME_Marshal(&source->sigAlg, buffer, size); in TPMT_SIGNATURE_Marshal()
7026 total_size += in TPMT_SIGNATURE_Marshal()
7028 return total_size; in TPMT_SIGNATURE_Marshal()
7146 UINT16 total_size = 0; in TPMT_SIG_SCHEME_Marshal() local
7147 total_size += TPMI_ALG_SIG_SCHEME_Marshal(&source->scheme, buffer, size); in TPMT_SIG_SCHEME_Marshal()
7148 total_size += in TPMT_SIG_SCHEME_Marshal()
7150 return total_size; in TPMT_SIG_SCHEME_Marshal()
7170 UINT16 total_size = 0; in TPMT_SYM_DEF_Marshal() local
7171 total_size += TPMI_ALG_SYM_Marshal(&source->algorithm, buffer, size); in TPMT_SYM_DEF_Marshal()
7172 total_size += TPMU_SYM_KEY_BITS_Marshal(&source->keyBits, buffer, size, in TPMT_SYM_DEF_Marshal()
7174 total_size += in TPMT_SYM_DEF_Marshal()
7176 return total_size; in TPMT_SYM_DEF_Marshal()
7265 UINT16 total_size = 0; in TPMT_TK_AUTH_Marshal() local
7266 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_AUTH_Marshal()
7267 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_AUTH_Marshal()
7268 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_AUTH_Marshal()
7269 return total_size; in TPMT_TK_AUTH_Marshal()
7294 UINT16 total_size = 0; in TPMT_TK_CREATION_Marshal() local
7295 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_CREATION_Marshal()
7296 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_CREATION_Marshal()
7297 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_CREATION_Marshal()
7298 return total_size; in TPMT_TK_CREATION_Marshal()
7323 UINT16 total_size = 0; in TPMT_TK_HASHCHECK_Marshal() local
7324 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_HASHCHECK_Marshal()
7325 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_HASHCHECK_Marshal()
7326 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_HASHCHECK_Marshal()
7327 return total_size; in TPMT_TK_HASHCHECK_Marshal()
7352 UINT16 total_size = 0; in TPMT_TK_VERIFIED_Marshal() local
7353 total_size += TPM_ST_Marshal(&source->tag, buffer, size); in TPMT_TK_VERIFIED_Marshal()
7354 total_size += TPMI_RH_HIERARCHY_Marshal(&source->hierarchy, buffer, size); in TPMT_TK_VERIFIED_Marshal()
7355 total_size += TPM2B_DIGEST_Marshal(&source->digest, buffer, size); in TPMT_TK_VERIFIED_Marshal()
7356 return total_size; in TPMT_TK_VERIFIED_Marshal()
8374 UINT16 total_size = 0; in _ID_OBJECT_Marshal() local
8375 total_size += TPM2B_DIGEST_Marshal(&source->integrityHMAC, buffer, size); in _ID_OBJECT_Marshal()
8376 total_size += TPM2B_DIGEST_Marshal(&source->encIdentity, buffer, size); in _ID_OBJECT_Marshal()
8377 return total_size; in _ID_OBJECT_Marshal()
8394 UINT16 total_size = 0; in _PRIVATE_Marshal() local
8395 total_size += TPM2B_DIGEST_Marshal(&source->integrityOuter, buffer, size); in _PRIVATE_Marshal()
8396 total_size += TPM2B_DIGEST_Marshal(&source->integrityInner, buffer, size); in _PRIVATE_Marshal()
8397 total_size += TPMT_SENSITIVE_Marshal(&source->sensitive, buffer, size); in _PRIVATE_Marshal()
8398 return total_size; in _PRIVATE_Marshal()