Home
last modified time | relevance | path

Searched refs:certificate (Results 1 – 25 of 63) sorted by relevance

123

/system/keymaster/km_openssl/
Dcertificate_utils.cpp246 X509_Ptr certificate(X509_new()); in make_cert_rump() local
247 if (!certificate.get()) return TranslateLastOpenSslError(); in make_cert_rump()
250 if (!X509_set_version(certificate.get(), 2 /* version 3 */)) return TranslateLastOpenSslError(); in make_cert_rump()
256 !X509_set_serialNumber(certificate.get(), in make_cert_rump()
261 if (!X509_set_subject_name(certificate.get(), in make_cert_rump()
266 if (!X509_set_issuer_name(certificate.get(), const_cast<X509_NAME*>(issuer))) { in make_cert_rump()
275 !X509_set_notBefore(certificate.get(), notBefore.get() /* Don't release; copied */)) { in make_cert_rump()
285 !X509_set_notAfter(certificate.get(), notAfter.get() /* Don't release; copied */)) { in make_cert_rump()
289 *cert_out = std::move(certificate); in make_cert_rump()
297 X509_Ptr certificate; in make_cert() local
[all …]
Dattestation_utils.cpp37 CertificateChain make_cert_chain(X509* certificate, CertificateChain chain, in make_cert_chain() argument
40 *error = encode_certificate(certificate, &blob); in make_cert_chain()
117 X509* certificate) { in add_attestation_extension() argument
124 if (!X509_add_ext(certificate, attest_extension.get() /* Don't release; copied */, in add_attestation_extension()
140 X509_Ptr certificate; in make_attestation_cert() local
141 if (auto error = make_cert(evp_pkey, issuer, cert_params, &certificate)) { in make_attestation_cert()
147 certificate.get())) { in make_attestation_cert()
151 *cert_out = std::move(certificate); in make_attestation_cert()
306 X509_Ptr certificate; in generate_attestation() local
308 tee_enforced, sw_enforced, context, &certificate); in generate_attestation()
[all …]
/system/apex/apexer/testdata/
DAndroid.bp20 name: "com.android.example.apex.certificate",
23 certificate: "com.android.example.apex",
38 certificate: ":com.android.example.apex.certificate",
50 certificate: ":com.android.example.apex.certificate",
62 certificate: ":com.android.example.apex.certificate",
74 certificate: ":com.android.example.apex.certificate",
/system/security/keystore2/src/crypto/
Dcertificate_utils.cpp223 X509_Ptr certificate(X509_new()); in makeCertRump() local
224 if (!certificate) { in makeCertRump()
229 if (!X509_set_version(certificate.get(), 2 /* version 3, but zero-based */)) { in makeCertRump()
250 !X509_set_serialNumber(certificate.get(), serialNumber.get() /* Don't release; copied */)) in makeCertRump()
256 if (!X509_set_subject_name(certificate.get(), x509_subject->get() /* copied */)) { in makeCertRump()
270 !X509_set_notBefore(certificate.get(), notBefore.get() /* Don't release; copied */)) in makeCertRump()
281 !X509_set_notAfter(certificate.get(), notAfter.get() /* Don't release; copied */)) { in makeCertRump()
285 return certificate; in makeCertRump()
302 auto certificate = std::move(std::get<X509_Ptr>(certificateV)); in makeCert() local
305 if (!X509_set_pubkey(certificate.get(), const_cast<EVP_PKEY*>(evp_pkey))) { in makeCert()
[all …]
/system/security/keystore2/tests/
Dkeystore2_client_attest_key_tests.rs53 cert_chain.extend(attestation_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_rsa_signing_key_success()
78 cert_chain.extend(sign_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_rsa_signing_key_success()
79 cert_chain.extend(attestation_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_rsa_signing_key_success()
101 cert_chain.extend(attestation_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_rsa_encrypt_key_success()
126 cert_chain.extend(decrypt_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_rsa_encrypt_key_success()
127 cert_chain.extend(attestation_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_rsa_encrypt_key_success()
150 cert_chain.extend(attestation_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_ec_key_success()
165 cert_chain.extend(ec_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_ec_key_success()
166 cert_chain.extend(attestation_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_ec_key_success()
194 cert_chain.extend(attestation_key_metadata.certificate.as_ref().unwrap()); in keystore2_attest_rsa_signing_key_with_ec_25519_key_success()
[all …]
Dkeystore2_client_key_id_domain_tests.rs82 assert_eq!(key_metadata.certificate, key_entry_response.metadata.certificate); in keystore2_find_key_with_key_id_as_domain()
140 assert_ne!(key_metadata.certificate, new_key_metadata.certificate); in keystore2_key_id_alias_rebind_verify_by_alias()
206 assert_eq!(key_metadata.certificate, key_entry_response.metadata.certificate); in keystore2_key_id_alias_rebind_verify_by_key_id()
225 assert_ne!(key_metadata.certificate, new_key_metadata.certificate); in keystore2_key_id_alias_rebind_verify_by_key_id()
/system/timezone/apex/
DAndroid.bp35 certificate: ":com.android.tzdata.certificate",
50 name: "com.android.tzdata.certificate",
51 certificate: "com.android.tzdata",
/system/apex/tests/testdata/maxsdk/com.android.apex.maxsdk.test/
DAndroid.bp26 name: "com.android.apex.maxsdk.test.certificate",
27 certificate: "com.android.apex.maxsdk.test",
35 certificate: ":com.android.apex.maxsdk.test.certificate",
/system/security/keystore2/src/crypto/include/
Dcertificate_utils.h121 CertUtilsError signCert(X509* certificate, EVP_PKEY* signing_key);
169 CertUtilsError signCertWith(X509* certificate,
179 std::variant<CertUtilsError, std::vector<uint8_t>> encodeCert(X509* certificate);
/system/security/diced/open_dice/src/
Dops.rs125 certificate: &mut [u8],
136 certificate.len(),
137 certificate.as_mut_ptr(),
Dretry.rs152 retry_with_bigger_buffer(|certificate| {
157 certificate,
/system/keymaster/include/keymaster/km_openssl/
Dcertificate_utils.h66 keymaster_error_t sign_cert(X509* certificate, const EVP_PKEY* signing_key);
75 keymaster_error_t encode_certificate(X509* certificate, keymaster_blob_t* derCert);
/system/update_engine/
Dcertificate_checker.cc42 X509* certificate = X509_STORE_CTX_get_current_cert(x509_ctx); in GetCertificateDigest() local
43 TEST_AND_RETURN_FALSE(certificate); in GetCertificateDigest()
50 bool success = X509_digest(certificate, digest_function, out_digest, &len); in GetCertificateDigest()
/system/apex/tests/testdata/vendorapex/
DAndroid.bp26 name: "com.android.apex.vendor.foo.certificate",
27 certificate: "com.android.apex.vendor.foo",
35 certificate: ":com.android.apex.vendor.foo.certificate",
/system/extras/verity/
DBootSignature.java67 private ASN1Encodable certificate; field in BootSignature
112 certificate = sequence.getObjectAt(1); in BootSignature()
113 byte[] encoded = ((ASN1Object) certificate).getEncoded(); in BootSignature()
162 certificate = s.readObject(); in setCertificate()
193 v.add(certificate); in toASN1Primitive()
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/1/android/system/keystore2/
DKeyMetadata.aidl41 @nullable byte[] certificate;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/current/android/system/keystore2/
DKeyMetadata.aidl41 @nullable byte[] certificate;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/2/android/system/keystore2/
DKeyMetadata.aidl41 @nullable byte[] certificate;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/3/android/system/keystore2/
DKeyMetadata.aidl41 @nullable byte[] certificate;
/system/security/keystore2/tests/legacy_blobs/
Dkeystore2_legacy_blob_tests.rs213 make_cert_blob_file(path_buf.as_path(), key_metadata.certificate.as_ref().unwrap()) in keystore2_encrypted_characteristics()
254 cert: key_metadata.certificate.unwrap(), in keystore2_encrypted_characteristics()
280 key_entry_response.metadata.certificate.unwrap(), in keystore2_encrypted_characteristics()
472 key_metadata.certificate.as_ref().unwrap(), in keystore2_encrypted_certificates()
515 cert: key_metadata.certificate.unwrap(), in keystore2_encrypted_certificates()
541 key_entry_response.metadata.certificate.unwrap(), in keystore2_encrypted_certificates()
/system/apex/tests/testdata/apkinapex/com.android.apex.system.test/
DAndroid.bp26 name: "com.android.apex.system.test.certificate",
27 certificate: "com.android.apex.system.test",
/system/apex/tests/testdata/apkinapex/com.android.apex.product.test/
DAndroid.bp26 name: "com.android.apex.product.test.certificate",
27 certificate: "com.android.apex.product.test",
/system/apex/tests/testdata/apkinapex/com.android.apex.system_ext.test/
DAndroid.bp26 name: "com.android.apex.system_ext.test.certificate",
27 certificate: "com.android.apex.system_ext.test",
/system/apex/tests/testdata/apkinapex/com.android.apex.vendor.test/
DAndroid.bp26 name: "com.android.apex.vendor.test.certificate",
27 certificate: "com.android.apex.vendor.test",
/system/hardware/interfaces/keystore2/aidl/android/system/keystore2/
DKeyMetadata.aidl53 @nullable byte[] certificate;

123