Home
last modified time | relevance | path

Searched refs:jso2 (Results 1 – 10 of 10) sorted by relevance

/external/tpm2-tss/src/tss2-fapi/
Difapi_json_serialize.c89 json_object *jso2; in ifapi_json_IFAPI_KEY_serialize() local
93 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
94 r = ifapi_json_TPMI_YES_NO_serialize(in->with_auth, &jso2); in ifapi_json_IFAPI_KEY_serialize()
97 json_object_object_add(*jso, "with_auth", jso2); in ifapi_json_IFAPI_KEY_serialize()
98 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
99 r = ifapi_json_UINT32_serialize(in->persistent_handle, &jso2); in ifapi_json_IFAPI_KEY_serialize()
102 json_object_object_add(*jso, "persistent_handle", jso2); in ifapi_json_IFAPI_KEY_serialize()
103 jso2 = NULL; in ifapi_json_IFAPI_KEY_serialize()
104 r = ifapi_json_TPM2B_PUBLIC_serialize(&in->public, &jso2); in ifapi_json_IFAPI_KEY_serialize()
107 json_object_object_add(*jso, "public", jso2); in ifapi_json_IFAPI_KEY_serialize()
[all …]
Difapi_policy_json_serialize.c127 json_object *jso2; in ifapi_json_TPMS_POLICYSIGNED_serialize() local
134 jso2 = NULL; in ifapi_json_TPMS_POLICYSIGNED_serialize()
135 r = ifapi_json_TPM2B_DIGEST_serialize(&in->cpHashA, &jso2); in ifapi_json_TPMS_POLICYSIGNED_serialize()
138 json_object_object_add(*jso, "cpHashA", jso2); in ifapi_json_TPMS_POLICYSIGNED_serialize()
141 jso2 = NULL; in ifapi_json_TPMS_POLICYSIGNED_serialize()
142 r = ifapi_json_TPM2B_NONCE_serialize(&in->policyRef, &jso2); in ifapi_json_TPMS_POLICYSIGNED_serialize()
145 json_object_object_add(*jso, "policyRef", jso2); in ifapi_json_TPMS_POLICYSIGNED_serialize()
148 jso2 = NULL; in ifapi_json_TPMS_POLICYSIGNED_serialize()
150 r = ifapi_json_char_serialize(in->keyPath, &jso2); in ifapi_json_TPMS_POLICYSIGNED_serialize()
153 json_object_object_add(*jso, "keyPath", jso2); in ifapi_json_TPMS_POLICYSIGNED_serialize()
[all …]
Difapi_json_deserialize.c106 json_object *jso2; in ifapi_json_IFAPI_KEY_deserialize() local
112 if (!ifapi_get_sub_object(jso, "persistent_handle", &jso2)) { in ifapi_json_IFAPI_KEY_deserialize()
116 r = ifapi_json_UINT32_deserialize(jso2, &out->persistent_handle); in ifapi_json_IFAPI_KEY_deserialize()
119 if (ifapi_get_sub_object(jso, "with_auth", &jso2)) { in ifapi_json_IFAPI_KEY_deserialize()
120 r = ifapi_json_TPMI_YES_NO_deserialize(jso2, &out->with_auth); in ifapi_json_IFAPI_KEY_deserialize()
127 if (!ifapi_get_sub_object(jso, "public", &jso2)) { in ifapi_json_IFAPI_KEY_deserialize()
131 r = ifapi_json_TPM2B_PUBLIC_deserialize(jso2, &out->public); in ifapi_json_IFAPI_KEY_deserialize()
134 if (!ifapi_get_sub_object(jso, "serialization", &jso2)) { in ifapi_json_IFAPI_KEY_deserialize()
138 r = ifapi_json_UINT8_ARY_deserialize(jso2, &out->serialization); in ifapi_json_IFAPI_KEY_deserialize()
141 if (!ifapi_get_sub_object(jso, "private", &jso2)) { in ifapi_json_IFAPI_KEY_deserialize()
[all …]
Difapi_policy_json_deserialize.c171 json_object *jso2; in ifapi_json_TPMS_POLICYSIGNED_deserialize() local
177 if (!ifapi_get_sub_object(jso, "cpHashA", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
180 r = ifapi_json_TPM2B_DIGEST_deserialize(jso2, &out->cpHashA); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
184 if (!ifapi_get_sub_object(jso, "policyRef", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
187 r = ifapi_json_TPM2B_NONCE_deserialize(jso2, &out->policyRef); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
193 if (!ifapi_get_sub_object(jso, "keyPath", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
197 r = ifapi_json_char_deserialize(jso2, &out->keyPath); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
201 if (!ifapi_get_sub_object(jso, "keyPublic", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
205 r = ifapi_json_TPMT_PUBLIC_deserialize(jso2, &out->keyPublic); in ifapi_json_TPMS_POLICYSIGNED_deserialize()
209 if (!ifapi_get_sub_object(jso, "keyPEM", &jso2)) { in ifapi_json_TPMS_POLICYSIGNED_deserialize()
[all …]
Dtpm_json_serialize.c68 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()
[all …]
Dtpm_json_deserialize.c348 json_object *jso2; in ifapi_json_TPMS_PCR_SELECTION_deserialize() local
352 if (!ifapi_get_sub_object(jso, "hash", &jso2)) { in ifapi_json_TPMS_PCR_SELECTION_deserialize()
356 r = ifapi_json_TPMI_ALG_HASH_deserialize(jso2, &out->hash); in ifapi_json_TPMS_PCR_SELECTION_deserialize()
359 if (!ifapi_get_sub_object(jso, "pcrSelect", &jso2)) { in ifapi_json_TPMS_PCR_SELECTION_deserialize()
363 return ifapi_json_pcr_selection_deserialize(jso2, &out->sizeofSelect, in ifapi_json_TPMS_PCR_SELECTION_deserialize()
386 json_object *jso2 = json_object_array_get_idx(jso, i); in ifapi_json_BYTE_array_deserialize() local
387 TSS2_RC r = ifapi_json_BYTE_deserialize(jso2, &out[i]); in ifapi_json_BYTE_array_deserialize()
1014 json_object *jso2 = json_object_array_get_idx(jso, i); in ifapi_json_TPMA_OBJECT_deserialize() local
1015 const char *token = strip_prefix(json_object_get_string(jso2), in ifapi_json_TPMA_OBJECT_deserialize()
1028 LOG_ERROR("Unknown value: %s", json_object_get_string(jso2)); in ifapi_json_TPMA_OBJECT_deserialize()
[all …]
Difapi_profiles.c326 json_object *jso2; in ifapi_profile_json_deserialize() local
338 if (!ifapi_get_sub_object(jso, "type", &jso2)) { in ifapi_profile_json_deserialize()
342 r = ifapi_json_TPMI_ALG_PUBLIC_deserialize(jso2, &out->type); in ifapi_profile_json_deserialize()
345 if (!ifapi_get_sub_object(jso, "srk_template", &jso2)) { in ifapi_profile_json_deserialize()
349 out->srk_template = strdup(json_object_get_string(jso2)); in ifapi_profile_json_deserialize()
352 if (!ifapi_get_sub_object(jso, "ek_template", &jso2)) { in ifapi_profile_json_deserialize()
356 out->ek_template = strdup(json_object_get_string(jso2)); in ifapi_profile_json_deserialize()
359 if (!ifapi_get_sub_object(jso, "ecc_signing_scheme", &jso2)) { in ifapi_profile_json_deserialize()
362 r = ifapi_json_TPMT_SIG_SCHEME_deserialize(jso2, &out->ecc_signing_scheme); in ifapi_profile_json_deserialize()
366 if (!ifapi_get_sub_object(jso, "rsa_signing_scheme", &jso2)) { in ifapi_profile_json_deserialize()
[all …]
Difapi_config.c46 json_object *jso2; in ifapi_json_IFAPI_CONFIG_deserialize() local
50 if (!ifapi_get_sub_object(jso, "profile_dir", &jso2)) { in ifapi_json_IFAPI_CONFIG_deserialize()
53 r = ifapi_json_char_deserialize(jso2, &out->profile_dir); in ifapi_json_IFAPI_CONFIG_deserialize()
57 if (!ifapi_get_sub_object(jso, "user_dir", &jso2)) { in ifapi_json_IFAPI_CONFIG_deserialize()
60 r = ifapi_json_char_deserialize(jso2, &out->user_dir); in ifapi_json_IFAPI_CONFIG_deserialize()
64 if (!ifapi_get_sub_object(jso, "system_dir", &jso2)) { in ifapi_json_IFAPI_CONFIG_deserialize()
67 r = ifapi_json_char_deserialize(jso2, &out->keystore_dir); in ifapi_json_IFAPI_CONFIG_deserialize()
71 if (!ifapi_get_sub_object(jso, "log_dir", &jso2)) { in ifapi_json_IFAPI_CONFIG_deserialize()
74 r = ifapi_json_char_deserialize(jso2, &out->log_dir); in ifapi_json_IFAPI_CONFIG_deserialize()
78 if (!ifapi_get_sub_object(jso, "profile_name", &jso2)) { in ifapi_json_IFAPI_CONFIG_deserialize()
[all …]
Difapi_json_deserialize.h21 if (!ifapi_get_sub_object(jso, json_name, &jso2)) { \
24 r = ifapi_json_ ## type ## _deserialize (jso2, &out->name); \
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_Import.c143 json_object *jso2; in Fapi_Import_Async() local
223 if (ifapi_get_sub_object(jso, IFAPI_JSON_TAG_POLICY, &jso2) && in Fapi_Import_Async()
224 !(ifapi_get_sub_object(jso, IFAPI_JSON_TAG_DUPLICATE, &jso2)) in Fapi_Import_Async()