TPMS_NV_DIGEST_CERTIFY_INFO_Marshal(TPMS_NV_DIGEST_CERTIFY_INFO *source, BYTE **buffer, INT32 *size)
{
    UINT16 written = 0;
    written += TPM2B_NAME_Marshal(&source->indexName, buffer, size);
    written += TPM2B_DIGEST_Marshal(&source->nvDigest, buffer, size);
    return written;
}
TPMS_NV_DIGEST_CERTIFY_INFO_Marshal(TPMS_NV_DIGEST_CERTIFY_INFO *source, BYTE **buffer, INT32 *size)
{
    UINT16 written = 0;
    written += TPM2B_NAME_Marshal(&source->indexName, buffer, size);
    written += TPM2B_DIGEST_Marshal(&source->nvDigest, buffer, size);
    return written;
}