Home
last modified time | relevance | path

Searched refs:X509_Ptr (Results 1 – 17 of 17) sorted by relevance

/hardware/interfaces/security/keymint/support/fuzzer/
Dkeymint_attestation_fuzzer.cpp45 X509_Ptr parseCertificateBlob(const vector<uint8_t>& blob);
65 X509_Ptr KeyMintAttestationFuzzer::parseCertificateBlob(const vector<uint8_t>& blob) { in parseCertificateBlob()
67 return X509_Ptr(d2i_X509(nullptr, &data, blob.size())); in parseCertificateBlob()
91 X509_Ptr cert(parseCertificateBlob(attestationCert)); in verifyAttestationRecord()
/hardware/interfaces/keymaster/4.0/support/fuzzer/
Dkeymaster4_attestation_fuzzer.cpp36 X509_Ptr parseCertificateBlob(const hidl_vec<uint8_t>& blob);
76 X509_Ptr KeyMaster4AttestationFuzzer::parseCertificateBlob(const hidl_vec<uint8_t>& blob) { in parseCertificateBlob()
78 return X509_Ptr(d2i_X509(nullptr, &p, blob.size())); in parseCertificateBlob()
108 X509_Ptr cert(parseCertificateBlob(attestationCert)); in verifyAttestationRecord()
/hardware/interfaces/identity/aidl/vts/
DUtil.cpp50 using ::keymaster::X509_Ptr;
339 X509_Ptr cert = X509_Ptr(d2i_X509(nullptr, &certData, certBytes.size())); in validateAttestationCertificate()
343 X509_Ptr batchCert = X509_Ptr(d2i_X509(nullptr, &batchCertData, batchCertBytes.size())); in validateAttestationCertificate()
486 auto cert = X509_Ptr(d2i_X509(nullptr, &data, authKeyCertChain.size())); in verifyAuthKeyCertificate()
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp162 using X509_Ptr = bssl::UniquePtr<X509>; typedef
365 X509_Ptr x509Cert(d2i_X509(nullptr, &derCert, derCertSize)); in getCertificateExpiryAsMillis()
615 auto x509 = X509_Ptr(d2i_X509(nullptr, &p, pEnd - p)); in certificateChainSplit()
629 vector<X509_Ptr>& parsedCertificates) { in parseX509Certificates()
634 auto x509 = X509_Ptr(d2i_X509(nullptr, &p, pEnd - p)); in parseX509Certificates()
647 auto x509 = X509_Ptr(d2i_X509(nullptr, &p, certificate.size())); in certificateSignedByPublicKey()
693 vector<X509_Ptr> certs; in certificateChainValidate()
705 const X509_Ptr& keyCert = certs[n - 1]; in certificateChainValidate()
706 const X509_Ptr& signingCert = certs[n]; in certificateChainValidate()
1090 auto x509 = X509_Ptr(X509_new()); in ecKeyPairGetPkcs12()
[all …]
/hardware/interfaces/keymaster/4.1/vts/functional/
DDeviceUniqueAttestationTest.cpp189 X509_Ptr parse_cert_blob(const std::vector<uint8_t>& blob) { in parse_cert_blob()
191 return X509_Ptr(d2i_X509(nullptr /* allocate new */, &p, blob.size())); in parse_cert_blob()
197 X509_Ptr key_cert(parse_cert_blob(cert_chain[i])); in check_certificate_chain_signatures()
198 X509_Ptr signing_cert(parse_cert_blob(cert_chain[i + 1])); in check_certificate_chain_signatures()
/hardware/interfaces/keymaster/4.0/vts/functional/
DBootloaderStateTest.cpp56 X509_Ptr cert(parse_cert_blob(cert_chain[0])); in SetUp()
Dkeymaster_hidl_hal_test.cpp270 X509_Ptr signing_cert(parse_cert_blob(chain[0])); in verify_chain()
296 X509_Ptr key_cert(parse_cert_blob(chain[i])); in verify_chain()
297 X509_Ptr signing_cert; in verify_chain()
401 X509_Ptr cert(parse_cert_blob(attestation_cert)); in verify_attestation_record()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DBootloaderStateTest.cpp60 X509_Ptr cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in SetUp()
DKeyMintAidlTestBase.cpp992 X509_Ptr key_cert(parse_cert_blob(der_cert)); in LocalVerifyMessage()
1113 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in LocalRsaEncryptMessage()
1779 X509_Ptr cert(parse_cert_blob(certificate.encodedCertificate)); in verify_subject_and_serial()
1854 X509_Ptr cert(parse_cert_blob(attestation_cert)); in verify_attestation_record()
2014 X509_Ptr key_cert(parse_cert_blob(chain[i].encodedCertificate)); in ChainSignaturesAreValid()
2015 X509_Ptr signing_cert; in ChainSignaturesAreValid()
2057 X509_Ptr parse_cert_blob(const vector<uint8_t>& blob) { in parse_cert_blob()
2059 return X509_Ptr(d2i_X509(nullptr /* allocate new */, &p, blob.size())); in parse_cert_blob()
DKeyBlobUpgradeTest.cpp548 X509_Ptr kmKeyCert(parse_cert_blob(cert)); in TEST_P()
DKeyMintAidlTestBase.h424 X509_Ptr parse_cert_blob(const vector<uint8_t>& blob);
DKeyMintTest.cpp1102 X509_Ptr cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P()
1244 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P()
1321 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P()
4320 X509_Ptr kmKeyCert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P()
4358 X509_Ptr kmKeyCert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P()
8519 X509_Ptr kmKeyCert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in GenerateKeyMintEcKey()
8666 X509_Ptr kmKeyCert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P()
/hardware/interfaces/security/keymint/support/
Dremote_prov_utils.cpp53 using X509_Ptr = bssl::UniquePtr<X509>; typedef
755 ErrMsgOr<X509_Ptr> parseX509Cert(const std::vector<uint8_t>& cert) { in parseX509Cert()
760 X509_Ptr result(X509_parse_from_buffer(certBuf.get())); in parseX509Cert()
767 std::string getX509IssuerName(const X509_Ptr& cert) { in getX509IssuerName()
774 std::string getX509SubjectName(const X509_Ptr& cert) { in getX509SubjectName()
/hardware/interfaces/security/keymint/aidl/vts/performance/
DKeyMintBenchmark.cpp324 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in LocalRsaEncryptMessage()
493 X509_Ptr parse_cert_blob(const vector<uint8_t>& blob) { in parse_cert_blob()
495 return X509_Ptr(d2i_X509(nullptr /* allocate new */, &p, blob.size())); in parse_cert_blob()
/hardware/interfaces/security/rkp/aidl/vts/functional/
DVtsRemotelyProvisionedComponentTests.cpp397 X509_Ptr key_cert(parse_cert_blob(attested_key_cert_chain[0].encodedCertificate)); in TEST_P()
894 X509_Ptr cert(parse_cert_blob(attestation_cert)); in parse_root_of_trust()
/hardware/interfaces/keymaster/4.1/support/
Dattestation_record.cpp334 X509_Ptr x509(d2i_X509(nullptr, &p, cert.size())); in MAKE_OPENSSL_PTR_TYPE()
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp297 X509_Ptr key_cert(parse_cert_blob(chain[i])); in verify_chain()
298 X509_Ptr signing_cert; in verify_chain()
943 X509_Ptr cert(parse_cert_blob(attestation_cert)); in verify_attestation_record()