Lines Matching refs:jso2
326 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()
369 r = ifapi_json_TPMT_SIG_SCHEME_deserialize(jso2, &out->rsa_signing_scheme); in ifapi_profile_json_deserialize()
373 if (!ifapi_get_sub_object(jso, "rsa_decrypt_scheme", &jso2)) { in ifapi_profile_json_deserialize()
376 r = ifapi_json_TPMT_RSA_DECRYPT_deserialize(jso2, &out->rsa_decrypt_scheme); in ifapi_profile_json_deserialize()
380 if (!ifapi_get_sub_object(jso, "sym_mode", &jso2)) { in ifapi_profile_json_deserialize()
384 r = ifapi_json_TPMI_ALG_SYM_MODE_deserialize(jso2, &out->sym_mode); in ifapi_profile_json_deserialize()
387 if (!ifapi_get_sub_object(jso, "sym_parameters", &jso2)) { in ifapi_profile_json_deserialize()
391 r = ifapi_json_TPMT_SYM_DEF_OBJECT_deserialize(jso2, &out->sym_parameters); in ifapi_profile_json_deserialize()
394 if (!ifapi_get_sub_object(jso, "sym_block_size", &jso2)) { in ifapi_profile_json_deserialize()
398 r = ifapi_json_UINT16_deserialize(jso2, &out->sym_block_size); in ifapi_profile_json_deserialize()
401 if (!ifapi_get_sub_object(jso, "pcr_selection", &jso2)) { in ifapi_profile_json_deserialize()
405 r = ifapi_json_TPML_PCR_SELECTION_deserialize(jso2, &out->pcr_selection); in ifapi_profile_json_deserialize()
408 if (!ifapi_get_sub_object(jso, "nameAlg", &jso2)) { in ifapi_profile_json_deserialize()
412 r = ifapi_json_TPMI_ALG_HASH_deserialize(jso2, &out->nameAlg); in ifapi_profile_json_deserialize()
416 if (!ifapi_get_sub_object(jso, "exponent", &jso2)) { in ifapi_profile_json_deserialize()
420 r = ifapi_json_UINT32_deserialize(jso2, &out->exponent); in ifapi_profile_json_deserialize()
422 if (!ifapi_get_sub_object(jso, "keyBits", &jso2)) { in ifapi_profile_json_deserialize()
427 r = ifapi_json_TPMI_RSA_KEY_BITS_deserialize(jso2, &out->keyBits); in ifapi_profile_json_deserialize()
431 if (!ifapi_get_sub_object(jso, "curveID", &jso2)) { in ifapi_profile_json_deserialize()
435 r = ifapi_json_TPMI_ECC_CURVE_deserialize(jso2, &out->curveID); in ifapi_profile_json_deserialize()
439 if (!ifapi_get_sub_object(jso, "session_symmetric", &jso2)) { in ifapi_profile_json_deserialize()
442 r = ifapi_json_TPMT_SYM_DEF_deserialize(jso2, &out->session_symmetric); in ifapi_profile_json_deserialize()
446 if (ifapi_get_sub_object(jso, "eh_policy", &jso2)) { in ifapi_profile_json_deserialize()
451 r = ifapi_json_TPMS_POLICY_deserialize(jso2, out->eh_policy); in ifapi_profile_json_deserialize()
455 if (ifapi_get_sub_object(jso, "sh_policy", &jso2)) { in ifapi_profile_json_deserialize()
460 r = ifapi_json_TPMS_POLICY_deserialize(jso2, out->sh_policy); in ifapi_profile_json_deserialize()
464 if (ifapi_get_sub_object(jso, "ek_policy", &jso2)) { in ifapi_profile_json_deserialize()
469 r = ifapi_json_TPMS_POLICY_deserialize(jso2, out->ek_policy); in ifapi_profile_json_deserialize()
473 if (ifapi_get_sub_object(jso, "srk_policy", &jso2)) { in ifapi_profile_json_deserialize()
478 r = ifapi_json_TPMS_POLICY_deserialize(jso2, out->srk_policy); in ifapi_profile_json_deserialize()
482 if (ifapi_get_sub_object(jso, "lockout_policy", &jso2)) { in ifapi_profile_json_deserialize()
487 r = ifapi_json_TPMS_POLICY_deserialize(jso2, out->lockout_policy); in ifapi_profile_json_deserialize()
491 if (!ifapi_get_sub_object(jso, "newMaxTries", &jso2)) { in ifapi_profile_json_deserialize()
494 r = ifapi_json_UINT32_deserialize(jso2, &out->newMaxTries); in ifapi_profile_json_deserialize()
498 if (!ifapi_get_sub_object(jso, "newRecoveryTime", &jso2)) { in ifapi_profile_json_deserialize()
501 r = ifapi_json_UINT32_deserialize(jso2, &out->newRecoveryTime); in ifapi_profile_json_deserialize()
505 if (!ifapi_get_sub_object(jso, "lockoutRecovery", &jso2)) { in ifapi_profile_json_deserialize()
508 r = ifapi_json_UINT32_deserialize(jso2, &out->lockoutRecovery); in ifapi_profile_json_deserialize()