Lines Matching refs:key_desc
485 UniquePtr<KM_KEY_DESCRIPTION, KM_KEY_DESCRIPTION_Delete> key_desc(KM_KEY_DESCRIPTION_new()); in build_attestation_record() local
486 if (!key_desc.get()) in build_attestation_record()
516 if (!ASN1_INTEGER_set(key_desc->attestation_version, kCurrentAttestationVersion) || in build_attestation_record()
517 !ASN1_ENUMERATED_set(key_desc->attestation_security_level, context.GetSecurityLevel()) || in build_attestation_record()
518 !ASN1_INTEGER_set(key_desc->keymaster_version, keymaster_version) || in build_attestation_record()
519 !ASN1_ENUMERATED_set(key_desc->keymaster_security_level, keymaster_security_level)) in build_attestation_record()
525 if (!ASN1_OCTET_STRING_set(key_desc->attestation_challenge, attestation_challenge.data, in build_attestation_record()
548 error = build_auth_list(sw_enforced, key_desc->software_enforced); in build_attestation_record()
552 error = build_auth_list(tee_enforced, key_desc->tee_enforced); in build_attestation_record()
577 key_desc->unique_id = ASN1_OCTET_STRING_new(); in build_attestation_record()
578 if (!key_desc->unique_id || in build_attestation_record()
579 !ASN1_OCTET_STRING_set(key_desc->unique_id, unique_id.peek_read(), in build_attestation_record()
584 int len = i2d_KM_KEY_DESCRIPTION(key_desc.get(), nullptr); in build_attestation_record()
592 len = i2d_KM_KEY_DESCRIPTION(key_desc.get(), &p); in build_attestation_record()