Lines Matching refs:jso2
68 json_object *jso2; in ifapi_json_pcr_select_serialize() local
72 jso2 = json_object_new_int(i2); in ifapi_json_pcr_select_serialize()
73 return_if_null(jso2, "Out of memory.", TSS2_FAPI_RC_MEMORY); in ifapi_json_pcr_select_serialize()
74 json_object_array_add(*jso, jso2); in ifapi_json_pcr_select_serialize()
118 json_object *jso2 = NULL; in ifapi_json_TPMS_PCR_SELECTION_serialize() local
119 r = ifapi_json_TPMI_ALG_HASH_serialize(in->hash, &jso2); in ifapi_json_TPMS_PCR_SELECTION_serialize()
122 json_object_object_add(*jso, "hash", jso2); in ifapi_json_TPMS_PCR_SELECTION_serialize()
123 jso2 = NULL; in ifapi_json_TPMS_PCR_SELECTION_serialize()
124 r = ifapi_json_pcr_select_serialize(in->sizeofSelect, &in->pcrSelect[0], &jso2); in ifapi_json_TPMS_PCR_SELECTION_serialize()
127 json_object_object_add(*jso, "pcrSelect", jso2); in ifapi_json_TPMS_PCR_SELECTION_serialize()
146 json_object *jso2 = NULL; in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize() local
147 r = ifapi_json_TPM2_PT_PCR_serialize(in->tag, &jso2); in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize()
150 json_object_object_add(*jso, "tag", jso2); in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize()
151 jso2 = NULL; in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize()
152 r = ifapi_json_pcr_select_serialize(in->sizeofSelect, &in->pcrSelect[0], &jso2); in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize()
155 json_object_object_add(*jso, "pcrSelect", jso2); in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize()
227 json_object *jso1 = NULL, *jso2 = NULL; in ifapi_json_UINT64_serialize() local
242 jso2 = json_object_new_int64(in); in ifapi_json_UINT64_serialize()
243 if (!jso2) json_object_put(jso1); in ifapi_json_UINT64_serialize()
244 return_if_null(jso2, "Out of memory.", TSS2_FAPI_RC_MEMORY); in ifapi_json_UINT64_serialize()
248 if (!*jso) json_object_put(jso2); in ifapi_json_UINT64_serialize()
252 json_object_array_add(*jso, jso2); in ifapi_json_UINT64_serialize()
1188 json_object *jso2; in ifapi_json_TPMT_HA_serialize() local
1191 jso2 = NULL; in ifapi_json_TPMT_HA_serialize()
1192 r = ifapi_json_TPMI_ALG_HASH_serialize(in->hashAlg, &jso2); in ifapi_json_TPMT_HA_serialize()
1195 json_object_object_add(*jso, "hashAlg", jso2); in ifapi_json_TPMT_HA_serialize()
1197 json_object *jso2 = NULL; in ifapi_json_TPMT_HA_serialize() local
1198 r = ifapi_json_TPMU_HA_serialize(&in->digest, in->hashAlg, &jso2); in ifapi_json_TPMT_HA_serialize()
1201 json_object_object_add(*jso, "digest", jso2); in ifapi_json_TPMT_HA_serialize()
1401 json_object *jso2; in ifapi_json_TPMT_TK_CREATION_serialize() local
1408 jso2 = NULL; in ifapi_json_TPMT_TK_CREATION_serialize()
1409 r = ifapi_json_TPM2_ST_serialize(in->tag, &jso2); in ifapi_json_TPMT_TK_CREATION_serialize()
1412 json_object_object_add(*jso, "tag", jso2); in ifapi_json_TPMT_TK_CREATION_serialize()
1413 jso2 = NULL; in ifapi_json_TPMT_TK_CREATION_serialize()
1414 r = ifapi_json_TPMI_RH_HIERARCHY_serialize(in->hierarchy, &jso2); in ifapi_json_TPMT_TK_CREATION_serialize()
1417 json_object_object_add(*jso, "hierarchy", jso2); in ifapi_json_TPMT_TK_CREATION_serialize()
1418 jso2 = NULL; in ifapi_json_TPMT_TK_CREATION_serialize()
1419 r = ifapi_json_TPM2B_DIGEST_serialize(&in->digest, &jso2); in ifapi_json_TPMT_TK_CREATION_serialize()
1422 json_object_object_add(*jso, "digest", jso2); in ifapi_json_TPMT_TK_CREATION_serialize()
1441 json_object *jso2; in ifapi_json_TPMS_ALG_PROPERTY_serialize() local
1444 jso2 = NULL; in ifapi_json_TPMS_ALG_PROPERTY_serialize()
1445 r = ifapi_json_TPM2_ALG_ID_serialize(in->alg, &jso2); in ifapi_json_TPMS_ALG_PROPERTY_serialize()
1448 json_object_object_add(*jso, "alg", jso2); in ifapi_json_TPMS_ALG_PROPERTY_serialize()
1449 jso2 = NULL; in ifapi_json_TPMS_ALG_PROPERTY_serialize()
1450 r = ifapi_json_TPMA_ALGORITHM_serialize(in->algProperties, &jso2); in ifapi_json_TPMS_ALG_PROPERTY_serialize()
1453 json_object_object_add(*jso, "algProperties", jso2); in ifapi_json_TPMS_ALG_PROPERTY_serialize()
1472 json_object *jso2; in ifapi_json_TPMS_TAGGED_PROPERTY_serialize() local
1475 jso2 = NULL; in ifapi_json_TPMS_TAGGED_PROPERTY_serialize()
1476 r = ifapi_json_TPM2_PT_serialize(in->property, &jso2); in ifapi_json_TPMS_TAGGED_PROPERTY_serialize()
1479 json_object_object_add(*jso, "property", jso2); in ifapi_json_TPMS_TAGGED_PROPERTY_serialize()
1480 jso2 = NULL; in ifapi_json_TPMS_TAGGED_PROPERTY_serialize()
1481 r = ifapi_json_UINT32_serialize(in->value, &jso2); in ifapi_json_TPMS_TAGGED_PROPERTY_serialize()
1484 json_object_object_add(*jso, "value", jso2); in ifapi_json_TPMS_TAGGED_PROPERTY_serialize()
1512 json_object *jso2 = NULL; in ifapi_json_TPML_CC_serialize() local
1513 r = ifapi_json_TPM2_CC_serialize (in->commandCodes[i], &jso2); in ifapi_json_TPML_CC_serialize()
1516 json_object_array_add(*jso, jso2); in ifapi_json_TPML_CC_serialize()
1545 json_object *jso2 = NULL; in ifapi_json_TPML_CCA_serialize() local
1546 r = ifapi_json_TPMA_CC_serialize (in->commandAttributes[i], &jso2); in ifapi_json_TPML_CCA_serialize()
1549 json_object_array_add(*jso, jso2); in ifapi_json_TPML_CCA_serialize()
1578 json_object *jso2 = NULL; in ifapi_json_TPML_HANDLE_serialize() local
1579 r = ifapi_json_TPM2_HANDLE_serialize (in->handle[i], &jso2); in ifapi_json_TPML_HANDLE_serialize()
1582 json_object_array_add(*jso, jso2); in ifapi_json_TPML_HANDLE_serialize()
1611 json_object *jso2 = NULL; in ifapi_json_TPML_DIGEST_VALUES_serialize() local
1612 r = ifapi_json_TPMT_HA_serialize (&in->digests[i], &jso2); in ifapi_json_TPML_DIGEST_VALUES_serialize()
1615 json_object_array_add(*jso, jso2); in ifapi_json_TPML_DIGEST_VALUES_serialize()
1644 json_object *jso2 = NULL; in ifapi_json_TPML_PCR_SELECTION_serialize() local
1645 r = ifapi_json_TPMS_PCR_SELECTION_serialize (&in->pcrSelections[i], &jso2); in ifapi_json_TPML_PCR_SELECTION_serialize()
1648 json_object_array_add(*jso, jso2); in ifapi_json_TPML_PCR_SELECTION_serialize()
1677 json_object *jso2 = NULL; in ifapi_json_TPML_ALG_PROPERTY_serialize() local
1678 r = ifapi_json_TPMS_ALG_PROPERTY_serialize (&in->algProperties[i], &jso2); in ifapi_json_TPML_ALG_PROPERTY_serialize()
1681 json_object_array_add(*jso, jso2); in ifapi_json_TPML_ALG_PROPERTY_serialize()
1710 json_object *jso2 = NULL; in ifapi_json_TPML_TAGGED_TPM_PROPERTY_serialize() local
1711 r = ifapi_json_TPMS_TAGGED_PROPERTY_serialize (&in->tpmProperty[i], &jso2); in ifapi_json_TPML_TAGGED_TPM_PROPERTY_serialize()
1714 json_object_array_add(*jso, jso2); in ifapi_json_TPML_TAGGED_TPM_PROPERTY_serialize()
1743 json_object *jso2 = NULL; in ifapi_json_TPML_TAGGED_PCR_PROPERTY_serialize() local
1744 r = ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize (&in->pcrProperty[i], &jso2); in ifapi_json_TPML_TAGGED_PCR_PROPERTY_serialize()
1747 json_object_array_add(*jso, jso2); in ifapi_json_TPML_TAGGED_PCR_PROPERTY_serialize()
1776 json_object *jso2 = NULL; in ifapi_json_TPML_ECC_CURVE_serialize() local
1777 r = ifapi_json_TPM2_ECC_CURVE_serialize (in->eccCurves[i], &jso2); in ifapi_json_TPML_ECC_CURVE_serialize()
1780 json_object_array_add(*jso, jso2); in ifapi_json_TPML_ECC_CURVE_serialize()
1840 json_object *jso2; in ifapi_json_TPMS_CAPABILITY_DATA_serialize() local
1843 jso2 = NULL; in ifapi_json_TPMS_CAPABILITY_DATA_serialize()
1844 r = ifapi_json_TPM2_CAP_serialize(in->capability, &jso2); in ifapi_json_TPMS_CAPABILITY_DATA_serialize()
1847 json_object_object_add(*jso, "capability", jso2); in ifapi_json_TPMS_CAPABILITY_DATA_serialize()
1848 jso2 = NULL; in ifapi_json_TPMS_CAPABILITY_DATA_serialize()
1849 r = ifapi_json_TPMU_CAPABILITIES_serialize(&in->data, in->capability, &jso2); in ifapi_json_TPMS_CAPABILITY_DATA_serialize()
1852 json_object_object_add(*jso, "data", jso2); in ifapi_json_TPMS_CAPABILITY_DATA_serialize()
1871 json_object *jso2; in ifapi_json_TPMS_CLOCK_INFO_serialize() local
1874 jso2 = NULL; in ifapi_json_TPMS_CLOCK_INFO_serialize()
1875 r = ifapi_json_UINT64_serialize(in->clock, &jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1878 json_object_object_add(*jso, "clock", jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1879 jso2 = NULL; in ifapi_json_TPMS_CLOCK_INFO_serialize()
1880 r = ifapi_json_UINT32_serialize(in->resetCount, &jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1883 json_object_object_add(*jso, "resetCount", jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1884 jso2 = NULL; in ifapi_json_TPMS_CLOCK_INFO_serialize()
1885 r = ifapi_json_UINT32_serialize(in->restartCount, &jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1888 json_object_object_add(*jso, "restartCount", jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1889 jso2 = NULL; in ifapi_json_TPMS_CLOCK_INFO_serialize()
1890 r = ifapi_json_TPMI_YES_NO_serialize(in->safe, &jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1893 json_object_object_add(*jso, "safe", jso2); in ifapi_json_TPMS_CLOCK_INFO_serialize()
1912 json_object *jso2; in ifapi_json_TPMS_TIME_INFO_serialize() local
1915 jso2 = NULL; in ifapi_json_TPMS_TIME_INFO_serialize()
1916 r = ifapi_json_UINT64_serialize(in->time, &jso2); in ifapi_json_TPMS_TIME_INFO_serialize()
1919 json_object_object_add(*jso, "time", jso2); in ifapi_json_TPMS_TIME_INFO_serialize()
1920 jso2 = NULL; in ifapi_json_TPMS_TIME_INFO_serialize()
1921 r = ifapi_json_TPMS_CLOCK_INFO_serialize(&in->clockInfo, &jso2); in ifapi_json_TPMS_TIME_INFO_serialize()
1924 json_object_object_add(*jso, "clockInfo", jso2); in ifapi_json_TPMS_TIME_INFO_serialize()
1943 json_object *jso2; in ifapi_json_TPMS_TIME_ATTEST_INFO_serialize() local
1946 jso2 = NULL; in ifapi_json_TPMS_TIME_ATTEST_INFO_serialize()
1947 r = ifapi_json_TPMS_TIME_INFO_serialize(&in->time, &jso2); in ifapi_json_TPMS_TIME_ATTEST_INFO_serialize()
1950 json_object_object_add(*jso, "time", jso2); in ifapi_json_TPMS_TIME_ATTEST_INFO_serialize()
1951 jso2 = NULL; in ifapi_json_TPMS_TIME_ATTEST_INFO_serialize()
1952 r = ifapi_json_UINT64_serialize(in->firmwareVersion, &jso2); in ifapi_json_TPMS_TIME_ATTEST_INFO_serialize()
1955 json_object_object_add(*jso, "firmwareVersion", jso2); in ifapi_json_TPMS_TIME_ATTEST_INFO_serialize()
1974 json_object *jso2; in ifapi_json_TPMS_CERTIFY_INFO_serialize() local
1977 jso2 = NULL; in ifapi_json_TPMS_CERTIFY_INFO_serialize()
1978 r = ifapi_json_TPM2B_NAME_serialize(&in->name, &jso2); in ifapi_json_TPMS_CERTIFY_INFO_serialize()
1981 json_object_object_add(*jso, "name", jso2); in ifapi_json_TPMS_CERTIFY_INFO_serialize()
1982 jso2 = NULL; in ifapi_json_TPMS_CERTIFY_INFO_serialize()
1983 r = ifapi_json_TPM2B_NAME_serialize(&in->qualifiedName, &jso2); in ifapi_json_TPMS_CERTIFY_INFO_serialize()
1986 json_object_object_add(*jso, "qualifiedName", jso2); in ifapi_json_TPMS_CERTIFY_INFO_serialize()
2005 json_object *jso2; in ifapi_json_TPMS_QUOTE_INFO_serialize() local
2008 jso2 = NULL; in ifapi_json_TPMS_QUOTE_INFO_serialize()
2009 r = ifapi_json_TPML_PCR_SELECTION_serialize(&in->pcrSelect, &jso2); in ifapi_json_TPMS_QUOTE_INFO_serialize()
2012 json_object_object_add(*jso, "pcrSelect", jso2); in ifapi_json_TPMS_QUOTE_INFO_serialize()
2013 jso2 = NULL; in ifapi_json_TPMS_QUOTE_INFO_serialize()
2014 r = ifapi_json_TPM2B_DIGEST_serialize(&in->pcrDigest, &jso2); in ifapi_json_TPMS_QUOTE_INFO_serialize()
2017 json_object_object_add(*jso, "pcrDigest", jso2); in ifapi_json_TPMS_QUOTE_INFO_serialize()
2036 json_object *jso2; in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize() local
2039 jso2 = NULL; in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2040 r = ifapi_json_UINT64_serialize(in->auditCounter, &jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2043 json_object_object_add(*jso, "auditCounter", jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2044 jso2 = NULL; in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2045 r = ifapi_json_TPM2_ALG_ID_serialize(in->digestAlg, &jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2048 json_object_object_add(*jso, "digestAlg", jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2049 jso2 = NULL; in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2050 r = ifapi_json_TPM2B_DIGEST_serialize(&in->auditDigest, &jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2053 json_object_object_add(*jso, "auditDigest", jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2054 jso2 = NULL; in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2055 r = ifapi_json_TPM2B_DIGEST_serialize(&in->commandDigest, &jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2058 json_object_object_add(*jso, "commandDigest", jso2); in ifapi_json_TPMS_COMMAND_AUDIT_INFO_serialize()
2077 json_object *jso2; in ifapi_json_TPMS_SESSION_AUDIT_INFO_serialize() local
2080 jso2 = NULL; in ifapi_json_TPMS_SESSION_AUDIT_INFO_serialize()
2081 r = ifapi_json_TPMI_YES_NO_serialize(in->exclusiveSession, &jso2); in ifapi_json_TPMS_SESSION_AUDIT_INFO_serialize()
2084 json_object_object_add(*jso, "exclusiveSession", jso2); in ifapi_json_TPMS_SESSION_AUDIT_INFO_serialize()
2085 jso2 = NULL; in ifapi_json_TPMS_SESSION_AUDIT_INFO_serialize()
2086 r = ifapi_json_TPM2B_DIGEST_serialize(&in->sessionDigest, &jso2); in ifapi_json_TPMS_SESSION_AUDIT_INFO_serialize()
2089 json_object_object_add(*jso, "sessionDigest", jso2); in ifapi_json_TPMS_SESSION_AUDIT_INFO_serialize()
2108 json_object *jso2; in ifapi_json_TPMS_CREATION_INFO_serialize() local
2111 jso2 = NULL; in ifapi_json_TPMS_CREATION_INFO_serialize()
2112 r = ifapi_json_TPM2B_NAME_serialize(&in->objectName, &jso2); in ifapi_json_TPMS_CREATION_INFO_serialize()
2115 json_object_object_add(*jso, "objectName", jso2); in ifapi_json_TPMS_CREATION_INFO_serialize()
2116 jso2 = NULL; in ifapi_json_TPMS_CREATION_INFO_serialize()
2117 r = ifapi_json_TPM2B_DIGEST_serialize(&in->creationHash, &jso2); in ifapi_json_TPMS_CREATION_INFO_serialize()
2120 json_object_object_add(*jso, "creationHash", jso2); in ifapi_json_TPMS_CREATION_INFO_serialize()
2139 json_object *jso2; in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize() local
2142 jso2 = NULL; in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2143 r = ifapi_json_TPM2B_NAME_serialize(&in->indexName, &jso2); in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2146 json_object_object_add(*jso, "indexName", jso2); in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2147 jso2 = NULL; in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2148 r = ifapi_json_UINT16_serialize(in->offset, &jso2); in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2151 json_object_object_add(*jso, "offset", jso2); in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2152 jso2 = NULL; in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2153 r = ifapi_json_TPM2B_MAX_NV_BUFFER_serialize(&in->nvContents, &jso2); in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2156 json_object_object_add(*jso, "nvContents", jso2); in ifapi_json_TPMS_NV_CERTIFY_INFO_serialize()
2228 json_object *jso2; in ifapi_json_TPMS_ATTEST_serialize() local
2231 jso2 = NULL; in ifapi_json_TPMS_ATTEST_serialize()
2232 r = ifapi_json_TPM2_GENERATED_serialize(in->magic, &jso2); in ifapi_json_TPMS_ATTEST_serialize()
2235 json_object_object_add(*jso, "magic", jso2); in ifapi_json_TPMS_ATTEST_serialize()
2236 jso2 = NULL; in ifapi_json_TPMS_ATTEST_serialize()
2237 r = ifapi_json_TPMI_ST_ATTEST_serialize(in->type, &jso2); in ifapi_json_TPMS_ATTEST_serialize()
2240 json_object_object_add(*jso, "type", jso2); in ifapi_json_TPMS_ATTEST_serialize()
2241 jso2 = NULL; in ifapi_json_TPMS_ATTEST_serialize()
2242 r = ifapi_json_TPM2B_NAME_serialize(&in->qualifiedSigner, &jso2); in ifapi_json_TPMS_ATTEST_serialize()
2245 json_object_object_add(*jso, "qualifiedSigner", jso2); in ifapi_json_TPMS_ATTEST_serialize()
2246 jso2 = NULL; in ifapi_json_TPMS_ATTEST_serialize()
2247 r = ifapi_json_TPM2B_DATA_serialize(&in->extraData, &jso2); in ifapi_json_TPMS_ATTEST_serialize()
2250 json_object_object_add(*jso, "extraData", jso2); in ifapi_json_TPMS_ATTEST_serialize()
2251 jso2 = NULL; in ifapi_json_TPMS_ATTEST_serialize()
2252 r = ifapi_json_TPMS_CLOCK_INFO_serialize(&in->clockInfo, &jso2); in ifapi_json_TPMS_ATTEST_serialize()
2255 json_object_object_add(*jso, "clockInfo", jso2); in ifapi_json_TPMS_ATTEST_serialize()
2256 jso2 = NULL; in ifapi_json_TPMS_ATTEST_serialize()
2257 r = ifapi_json_UINT64_serialize(in->firmwareVersion, &jso2); in ifapi_json_TPMS_ATTEST_serialize()
2260 json_object_object_add(*jso, "firmwareVersion", jso2); in ifapi_json_TPMS_ATTEST_serialize()
2261 jso2 = NULL; in ifapi_json_TPMS_ATTEST_serialize()
2262 r = ifapi_json_TPMU_ATTEST_serialize(&in->attested, in->type, &jso2); in ifapi_json_TPMS_ATTEST_serialize()
2265 json_object_object_add(*jso, "attested", jso2); in ifapi_json_TPMS_ATTEST_serialize()
2348 json_object *jso2; in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize() local
2351 jso2 = NULL; in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize()
2352 r = ifapi_json_TPMI_ALG_SYM_OBJECT_serialize(in->algorithm, &jso2); in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize()
2355 json_object_object_add(*jso, "algorithm", jso2); in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize()
2357 json_object *jso2 = NULL; in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize() local
2358 r = ifapi_json_TPMU_SYM_KEY_BITS_serialize(&in->keyBits, in->algorithm, &jso2); in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize()
2361 json_object_object_add(*jso, "keyBits", jso2); in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize()
2364 json_object *jso2 = NULL; in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize() local
2365 r = ifapi_json_TPMU_SYM_MODE_serialize(&in->mode, in->algorithm, &jso2); in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize()
2368 json_object_object_add(*jso, "mode", jso2); in ifapi_json_TPMT_SYM_DEF_OBJECT_serialize()
2388 json_object *jso2; in ifapi_json_TPMS_SYMCIPHER_PARMS_serialize() local
2391 jso2 = NULL; in ifapi_json_TPMS_SYMCIPHER_PARMS_serialize()
2392 r = ifapi_json_TPMT_SYM_DEF_OBJECT_serialize(&in->sym, &jso2); in ifapi_json_TPMS_SYMCIPHER_PARMS_serialize()
2395 json_object_object_add(*jso, "sym", jso2); in ifapi_json_TPMS_SYMCIPHER_PARMS_serialize()
2414 json_object *jso2; in ifapi_json_TPMS_SCHEME_HASH_serialize() local
2417 jso2 = NULL; in ifapi_json_TPMS_SCHEME_HASH_serialize()
2418 r = ifapi_json_TPMI_ALG_HASH_serialize(in->hashAlg, &jso2); in ifapi_json_TPMS_SCHEME_HASH_serialize()
2421 json_object_object_add(*jso, "hashAlg", jso2); in ifapi_json_TPMS_SCHEME_HASH_serialize()
2440 json_object *jso2; in ifapi_json_TPMS_SCHEME_ECDAA_serialize() local
2443 jso2 = NULL; in ifapi_json_TPMS_SCHEME_ECDAA_serialize()
2444 r = ifapi_json_TPMI_ALG_HASH_serialize(in->hashAlg, &jso2); in ifapi_json_TPMS_SCHEME_ECDAA_serialize()
2447 json_object_object_add(*jso, "hashAlg", jso2); in ifapi_json_TPMS_SCHEME_ECDAA_serialize()
2448 jso2 = NULL; in ifapi_json_TPMS_SCHEME_ECDAA_serialize()
2449 r = ifapi_json_UINT16_serialize(in->count, &jso2); in ifapi_json_TPMS_SCHEME_ECDAA_serialize()
2452 json_object_object_add(*jso, "count", jso2); in ifapi_json_TPMS_SCHEME_ECDAA_serialize()
2501 json_object *jso2; in ifapi_json_TPMS_SCHEME_XOR_serialize() local
2504 jso2 = NULL; in ifapi_json_TPMS_SCHEME_XOR_serialize()
2505 r = ifapi_json_TPMI_ALG_HASH_serialize(in->hashAlg, &jso2); in ifapi_json_TPMS_SCHEME_XOR_serialize()
2508 json_object_object_add(*jso, "hashAlg", jso2); in ifapi_json_TPMS_SCHEME_XOR_serialize()
2509 jso2 = NULL; in ifapi_json_TPMS_SCHEME_XOR_serialize()
2510 r = ifapi_json_TPMI_ALG_KDF_serialize(in->kdf, &jso2); in ifapi_json_TPMS_SCHEME_XOR_serialize()
2513 json_object_object_add(*jso, "kdf", jso2); in ifapi_json_TPMS_SCHEME_XOR_serialize()
2558 json_object *jso2; in ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize() local
2561 jso2 = NULL; in ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize()
2562 r = ifapi_json_TPMI_ALG_KEYEDHASH_SCHEME_serialize(in->scheme, &jso2); in ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize()
2565 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize()
2567 json_object *jso2 = NULL; in ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize() local
2568 r = ifapi_json_TPMU_SCHEME_KEYEDHASH_serialize(&in->details, in->scheme, &jso2); in ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize()
2571 json_object_object_add(*jso, "details", jso2); in ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize()
2717 json_object *jso2; in ifapi_json_TPMT_SIG_SCHEME_serialize() local
2720 jso2 = NULL; in ifapi_json_TPMT_SIG_SCHEME_serialize()
2721 r = ifapi_json_TPMI_ALG_SIG_SCHEME_serialize(in->scheme, &jso2); in ifapi_json_TPMT_SIG_SCHEME_serialize()
2724 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMT_SIG_SCHEME_serialize()
2726 json_object *jso2 = NULL; in ifapi_json_TPMT_SIG_SCHEME_serialize() local
2727 r = ifapi_json_TPMU_SIG_SCHEME_serialize(&in->details, in->scheme, &jso2); in ifapi_json_TPMT_SIG_SCHEME_serialize()
2730 json_object_object_add(*jso, "details", jso2); in ifapi_json_TPMT_SIG_SCHEME_serialize()
2867 json_object *jso2; in ifapi_json_TPMT_KDF_SCHEME_serialize() local
2870 jso2 = NULL; in ifapi_json_TPMT_KDF_SCHEME_serialize()
2871 r = ifapi_json_TPMI_ALG_KDF_serialize(in->scheme, &jso2); in ifapi_json_TPMT_KDF_SCHEME_serialize()
2874 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMT_KDF_SCHEME_serialize()
2876 json_object *jso2 = NULL; in ifapi_json_TPMT_KDF_SCHEME_serialize() local
2877 r = ifapi_json_TPMU_KDF_SCHEME_serialize(&in->details, in->scheme, &jso2); in ifapi_json_TPMT_KDF_SCHEME_serialize()
2880 json_object_object_add(*jso, "details", jso2); in ifapi_json_TPMT_KDF_SCHEME_serialize()
2957 json_object *jso2; in ifapi_json_TPMT_ASYM_SCHEME_serialize() local
2960 jso2 = NULL; in ifapi_json_TPMT_ASYM_SCHEME_serialize()
2961 r = ifapi_json_TPMI_ALG_ASYM_SCHEME_serialize(in->scheme, &jso2); in ifapi_json_TPMT_ASYM_SCHEME_serialize()
2964 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMT_ASYM_SCHEME_serialize()
2966 json_object *jso2 = NULL; in ifapi_json_TPMT_ASYM_SCHEME_serialize() local
2967 r = ifapi_json_TPMU_ASYM_SCHEME_serialize(&in->details, in->scheme, &jso2); in ifapi_json_TPMT_ASYM_SCHEME_serialize()
2970 json_object_object_add(*jso, "details", jso2); in ifapi_json_TPMT_ASYM_SCHEME_serialize()
3006 json_object *jso2; in ifapi_json_TPMT_RSA_SCHEME_serialize() local
3009 jso2 = NULL; in ifapi_json_TPMT_RSA_SCHEME_serialize()
3010 r = ifapi_json_TPMI_ALG_RSA_SCHEME_serialize(in->scheme, &jso2); in ifapi_json_TPMT_RSA_SCHEME_serialize()
3013 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMT_RSA_SCHEME_serialize()
3015 json_object *jso2 = NULL; in ifapi_json_TPMT_RSA_SCHEME_serialize() local
3016 r = ifapi_json_TPMU_ASYM_SCHEME_serialize(&in->details, in->scheme, &jso2); in ifapi_json_TPMT_RSA_SCHEME_serialize()
3019 json_object_object_add(*jso, "details", jso2); in ifapi_json_TPMT_RSA_SCHEME_serialize()
3115 json_object *jso2; in ifapi_json_TPMS_ECC_POINT_serialize() local
3118 jso2 = NULL; in ifapi_json_TPMS_ECC_POINT_serialize()
3119 r = ifapi_json_TPM2B_ECC_PARAMETER_serialize(&in->x, &jso2); in ifapi_json_TPMS_ECC_POINT_serialize()
3122 json_object_object_add(*jso, "x", jso2); in ifapi_json_TPMS_ECC_POINT_serialize()
3123 jso2 = NULL; in ifapi_json_TPMS_ECC_POINT_serialize()
3124 r = ifapi_json_TPM2B_ECC_PARAMETER_serialize(&in->y, &jso2); in ifapi_json_TPMS_ECC_POINT_serialize()
3127 json_object_object_add(*jso, "y", jso2); in ifapi_json_TPMS_ECC_POINT_serialize()
3177 json_object *jso2; in ifapi_json_TPMT_ECC_SCHEME_serialize() local
3180 jso2 = NULL; in ifapi_json_TPMT_ECC_SCHEME_serialize()
3181 r = ifapi_json_TPMI_ALG_ECC_SCHEME_serialize(in->scheme, &jso2); in ifapi_json_TPMT_ECC_SCHEME_serialize()
3184 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMT_ECC_SCHEME_serialize()
3186 json_object *jso2 = NULL; in ifapi_json_TPMT_ECC_SCHEME_serialize() local
3187 r = ifapi_json_TPMU_ASYM_SCHEME_serialize(&in->details, in->scheme, &jso2); in ifapi_json_TPMT_ECC_SCHEME_serialize()
3190 json_object_object_add(*jso, "details", jso2); in ifapi_json_TPMT_ECC_SCHEME_serialize()
3210 json_object *jso2; in ifapi_json_TPMS_SIGNATURE_RSA_serialize() local
3213 jso2 = NULL; in ifapi_json_TPMS_SIGNATURE_RSA_serialize()
3214 r = ifapi_json_TPMI_ALG_HASH_serialize(in->hash, &jso2); in ifapi_json_TPMS_SIGNATURE_RSA_serialize()
3217 json_object_object_add(*jso, "hash", jso2); in ifapi_json_TPMS_SIGNATURE_RSA_serialize()
3218 jso2 = NULL; in ifapi_json_TPMS_SIGNATURE_RSA_serialize()
3219 r = ifapi_json_TPM2B_PUBLIC_KEY_RSA_serialize(&in->sig, &jso2); in ifapi_json_TPMS_SIGNATURE_RSA_serialize()
3222 json_object_object_add(*jso, "sig", jso2); in ifapi_json_TPMS_SIGNATURE_RSA_serialize()
3271 json_object *jso2; in ifapi_json_TPMS_SIGNATURE_ECC_serialize() local
3274 jso2 = NULL; in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3275 r = ifapi_json_TPMI_ALG_HASH_serialize(in->hash, &jso2); in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3278 json_object_object_add(*jso, "hash", jso2); in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3279 jso2 = NULL; in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3280 r = ifapi_json_TPM2B_ECC_PARAMETER_serialize(&in->signatureR, &jso2); in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3283 json_object_object_add(*jso, "signatureR", jso2); in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3284 jso2 = NULL; in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3285 r = ifapi_json_TPM2B_ECC_PARAMETER_serialize(&in->signatureS, &jso2); in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3288 json_object_object_add(*jso, "signatureS", jso2); in ifapi_json_TPMS_SIGNATURE_ECC_serialize()
3403 json_object *jso2; in ifapi_json_TPMT_SIGNATURE_serialize() local
3406 jso2 = NULL; in ifapi_json_TPMT_SIGNATURE_serialize()
3407 r = ifapi_json_TPMI_ALG_SIG_SCHEME_serialize(in->sigAlg, &jso2); in ifapi_json_TPMT_SIGNATURE_serialize()
3410 json_object_object_add(*jso, "sigAlg", jso2); in ifapi_json_TPMT_SIGNATURE_serialize()
3412 json_object *jso2 = NULL; in ifapi_json_TPMT_SIGNATURE_serialize() local
3413 r = ifapi_json_TPMU_SIGNATURE_serialize(&in->signature, in->sigAlg, &jso2); in ifapi_json_TPMT_SIGNATURE_serialize()
3416 json_object_object_add(*jso, "signature", jso2); in ifapi_json_TPMT_SIGNATURE_serialize()
3512 json_object *jso2; in ifapi_json_TPMS_KEYEDHASH_PARMS_serialize() local
3515 jso2 = NULL; in ifapi_json_TPMS_KEYEDHASH_PARMS_serialize()
3516 r = ifapi_json_TPMT_KEYEDHASH_SCHEME_serialize(&in->scheme, &jso2); in ifapi_json_TPMS_KEYEDHASH_PARMS_serialize()
3519 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMS_KEYEDHASH_PARMS_serialize()
3538 json_object *jso2; in ifapi_json_TPMS_ASYM_PARMS_serialize() local
3541 jso2 = NULL; in ifapi_json_TPMS_ASYM_PARMS_serialize()
3542 r = ifapi_json_TPMT_SYM_DEF_OBJECT_serialize(&in->symmetric, &jso2); in ifapi_json_TPMS_ASYM_PARMS_serialize()
3545 json_object_object_add(*jso, "symmetric", jso2); in ifapi_json_TPMS_ASYM_PARMS_serialize()
3546 jso2 = NULL; in ifapi_json_TPMS_ASYM_PARMS_serialize()
3547 r = ifapi_json_TPMT_ASYM_SCHEME_serialize(&in->scheme, &jso2); in ifapi_json_TPMS_ASYM_PARMS_serialize()
3550 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMS_ASYM_PARMS_serialize()
3569 json_object *jso2; in ifapi_json_TPMS_RSA_PARMS_serialize() local
3572 jso2 = NULL; in ifapi_json_TPMS_RSA_PARMS_serialize()
3573 r = ifapi_json_TPMT_SYM_DEF_OBJECT_serialize(&in->symmetric, &jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3576 json_object_object_add(*jso, "symmetric", jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3577 jso2 = NULL; in ifapi_json_TPMS_RSA_PARMS_serialize()
3578 r = ifapi_json_TPMT_RSA_SCHEME_serialize(&in->scheme, &jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3581 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3582 jso2 = NULL; in ifapi_json_TPMS_RSA_PARMS_serialize()
3583 r = ifapi_json_TPMI_RSA_KEY_BITS_serialize(in->keyBits, &jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3586 json_object_object_add(*jso, "keyBits", jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3587 jso2 = NULL; in ifapi_json_TPMS_RSA_PARMS_serialize()
3588 r = ifapi_json_UINT32_serialize(in->exponent, &jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3591 json_object_object_add(*jso, "exponent", jso2); in ifapi_json_TPMS_RSA_PARMS_serialize()
3610 json_object *jso2; in ifapi_json_TPMS_ECC_PARMS_serialize() local
3613 jso2 = NULL; in ifapi_json_TPMS_ECC_PARMS_serialize()
3614 r = ifapi_json_TPMT_SYM_DEF_OBJECT_serialize(&in->symmetric, &jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3617 json_object_object_add(*jso, "symmetric", jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3618 jso2 = NULL; in ifapi_json_TPMS_ECC_PARMS_serialize()
3619 r = ifapi_json_TPMT_ECC_SCHEME_serialize(&in->scheme, &jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3622 json_object_object_add(*jso, "scheme", jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3623 jso2 = NULL; in ifapi_json_TPMS_ECC_PARMS_serialize()
3624 r = ifapi_json_TPMI_ECC_CURVE_serialize(in->curveID, &jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3627 json_object_object_add(*jso, "curveID", jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3628 jso2 = NULL; in ifapi_json_TPMS_ECC_PARMS_serialize()
3629 r = ifapi_json_TPMT_KDF_SCHEME_serialize(&in->kdf, &jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3632 json_object_object_add(*jso, "kdf", jso2); in ifapi_json_TPMS_ECC_PARMS_serialize()
3681 json_object *jso2; in ifapi_json_TPMT_PUBLIC_serialize() local
3684 jso2 = NULL; in ifapi_json_TPMT_PUBLIC_serialize()
3685 r = ifapi_json_TPMI_ALG_PUBLIC_serialize(in->type, &jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3688 json_object_object_add(*jso, "type", jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3689 jso2 = NULL; in ifapi_json_TPMT_PUBLIC_serialize()
3690 r = ifapi_json_TPMI_ALG_HASH_serialize(in->nameAlg, &jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3693 json_object_object_add(*jso, "nameAlg", jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3694 jso2 = NULL; in ifapi_json_TPMT_PUBLIC_serialize()
3695 r = ifapi_json_TPMA_OBJECT_serialize(in->objectAttributes, &jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3698 json_object_object_add(*jso, "objectAttributes", jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3699 jso2 = NULL; in ifapi_json_TPMT_PUBLIC_serialize()
3700 r = ifapi_json_TPM2B_DIGEST_serialize(&in->authPolicy, &jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3703 json_object_object_add(*jso, "authPolicy", jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3704 jso2 = NULL; in ifapi_json_TPMT_PUBLIC_serialize()
3705 r = ifapi_json_TPMU_PUBLIC_PARMS_serialize(&in->parameters, in->type, &jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3708 json_object_object_add(*jso, "parameters", jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3709 jso2 = NULL; in ifapi_json_TPMT_PUBLIC_serialize()
3710 r = ifapi_json_TPMU_PUBLIC_ID_serialize(&in->unique, in->type, &jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3713 json_object_object_add(*jso, "unique", jso2); in ifapi_json_TPMT_PUBLIC_serialize()
3733 json_object *jso2; in ifapi_json_TPM2B_PUBLIC_serialize() local
3735 jso2 = NULL; in ifapi_json_TPM2B_PUBLIC_serialize()
3736 if (ifapi_json_UINT16_serialize(in->size, &jso2)) in ifapi_json_TPM2B_PUBLIC_serialize()
3739 json_object_object_add(*jso, "size", jso2); in ifapi_json_TPM2B_PUBLIC_serialize()
3741 jso2 = NULL; in ifapi_json_TPM2B_PUBLIC_serialize()
3742 if (ifapi_json_TPMT_PUBLIC_serialize(&in->publicArea, &jso2)) in ifapi_json_TPM2B_PUBLIC_serialize()
3745 json_object_object_add(*jso, "publicArea", jso2); in ifapi_json_TPM2B_PUBLIC_serialize()
3866 json_object *jso2 = NULL; in ifapi_json_TPMA_NV_serialize() local
3867 TSS2_RC r = ifapi_json_TPM2_NT_serialize(input2, &jso2); in ifapi_json_TPMA_NV_serialize()
3870 json_object_object_add(*jso, "TPM2_NT", jso2); in ifapi_json_TPMA_NV_serialize()
3890 json_object *jso2; in ifapi_json_TPMS_NV_PUBLIC_serialize() local
3893 jso2 = NULL; in ifapi_json_TPMS_NV_PUBLIC_serialize()
3894 r = ifapi_json_TPMI_RH_NV_INDEX_serialize(in->nvIndex, &jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3897 json_object_object_add(*jso, "nvIndex", jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3898 jso2 = NULL; in ifapi_json_TPMS_NV_PUBLIC_serialize()
3899 r = ifapi_json_TPMI_ALG_HASH_serialize(in->nameAlg, &jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3902 json_object_object_add(*jso, "nameAlg", jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3903 jso2 = NULL; in ifapi_json_TPMS_NV_PUBLIC_serialize()
3904 r = ifapi_json_TPMA_NV_serialize(in->attributes, &jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3907 json_object_object_add(*jso, "attributes", jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3908 jso2 = NULL; in ifapi_json_TPMS_NV_PUBLIC_serialize()
3909 r = ifapi_json_TPM2B_DIGEST_serialize(&in->authPolicy, &jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3912 json_object_object_add(*jso, "authPolicy", jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3913 jso2 = NULL; in ifapi_json_TPMS_NV_PUBLIC_serialize()
3914 r = ifapi_json_UINT16_serialize(in->dataSize, &jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3917 json_object_object_add(*jso, "dataSize", jso2); in ifapi_json_TPMS_NV_PUBLIC_serialize()
3937 json_object *jso2; in ifapi_json_TPM2B_NV_PUBLIC_serialize() local
3939 jso2 = NULL; in ifapi_json_TPM2B_NV_PUBLIC_serialize()
3940 if (ifapi_json_UINT16_serialize(in->size, &jso2)) in ifapi_json_TPM2B_NV_PUBLIC_serialize()
3943 json_object_object_add(*jso, "size", jso2); in ifapi_json_TPM2B_NV_PUBLIC_serialize()
3945 jso2 = NULL; in ifapi_json_TPM2B_NV_PUBLIC_serialize()
3946 if (ifapi_json_TPMS_NV_PUBLIC_serialize(&in->nvPublic, &jso2)) in ifapi_json_TPM2B_NV_PUBLIC_serialize()
3949 json_object_object_add(*jso, "nvPublic", jso2); in ifapi_json_TPM2B_NV_PUBLIC_serialize()
3969 json_object *jso2; in ifapi_json_TPMS_CREATION_DATA_serialize() local
3972 jso2 = NULL; in ifapi_json_TPMS_CREATION_DATA_serialize()
3973 r = ifapi_json_TPML_PCR_SELECTION_serialize(&in->pcrSelect, &jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3976 json_object_object_add(*jso, "pcrSelect", jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3977 jso2 = NULL; in ifapi_json_TPMS_CREATION_DATA_serialize()
3978 r = ifapi_json_TPM2B_DIGEST_serialize(&in->pcrDigest, &jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3981 json_object_object_add(*jso, "pcrDigest", jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3982 jso2 = NULL; in ifapi_json_TPMS_CREATION_DATA_serialize()
3983 r = ifapi_json_TPMA_LOCALITY_serialize(in->locality, &jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3986 json_object_object_add(*jso, "locality", jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3987 jso2 = NULL; in ifapi_json_TPMS_CREATION_DATA_serialize()
3988 r = ifapi_json_TPM2_ALG_ID_serialize(in->parentNameAlg, &jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3991 json_object_object_add(*jso, "parentNameAlg", jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3992 jso2 = NULL; in ifapi_json_TPMS_CREATION_DATA_serialize()
3993 r = ifapi_json_TPM2B_NAME_serialize(&in->parentName, &jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3996 json_object_object_add(*jso, "parentName", jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
3997 jso2 = NULL; in ifapi_json_TPMS_CREATION_DATA_serialize()
3998 r = ifapi_json_TPM2B_NAME_serialize(&in->parentQualifiedName, &jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
4001 json_object_object_add(*jso, "parentQualifiedName", jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
4002 jso2 = NULL; in ifapi_json_TPMS_CREATION_DATA_serialize()
4003 r = ifapi_json_TPM2B_DATA_serialize(&in->outsideInfo, &jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
4006 json_object_object_add(*jso, "outsideInfo", jso2); in ifapi_json_TPMS_CREATION_DATA_serialize()
4025 json_object *jso2; in ifapi_json_TPM2B_CREATION_DATA_serialize() local
4027 jso2 = NULL; in ifapi_json_TPM2B_CREATION_DATA_serialize()
4028 if (ifapi_json_UINT16_serialize(in->size, &jso2)) in ifapi_json_TPM2B_CREATION_DATA_serialize()
4031 json_object_object_add(*jso, "size", jso2); in ifapi_json_TPM2B_CREATION_DATA_serialize()
4033 jso2 = NULL; in ifapi_json_TPM2B_CREATION_DATA_serialize()
4034 if (ifapi_json_TPMS_CREATION_DATA_serialize(&in->creationData, &jso2)) in ifapi_json_TPM2B_CREATION_DATA_serialize()
4037 json_object_object_add(*jso, "creationData", jso2); in ifapi_json_TPM2B_CREATION_DATA_serialize()