Searched refs:key_cert (Results 1 – 7 of 7) sorted by relevance
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | DeviceUniqueAttestationTest.cpp | 197 X509_Ptr key_cert(parse_cert_blob(cert_chain[i])); in check_certificate_chain_signatures() local 200 if (!key_cert.get() || !signing_cert.get()) { in check_certificate_chain_signatures() 209 if (!X509_verify(key_cert.get(), signing_pubkey.get())) { in check_certificate_chain_signatures()
|
/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | KeyMintAidlTestBase.cpp | 992 X509_Ptr key_cert(parse_cert_blob(der_cert)); in LocalVerifyMessage() local 993 ASSERT_TRUE(key_cert.get()); in LocalVerifyMessage() 994 EVP_PKEY_Ptr pub_key(X509_get_pubkey(key_cert.get())); in LocalVerifyMessage() 1113 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in LocalRsaEncryptMessage() local 1114 if (key_cert.get() == nullptr) { in LocalRsaEncryptMessage() 1118 EVP_PKEY_Ptr pub_key(X509_get_pubkey(key_cert.get())); in LocalRsaEncryptMessage() 2014 X509_Ptr key_cert(parse_cert_blob(chain[i].encodedCertificate)); in ChainSignaturesAreValid() local 2021 if (!key_cert.get() || !signing_cert.get()) return AssertionFailure() << cert_data.str(); in ChainSignaturesAreValid() 2026 if (!X509_verify(key_cert.get(), signing_pubkey.get())) { in ChainSignaturesAreValid() 2033 string cert_issuer = x509NameToStr(X509_get_issuer_name(key_cert.get())); in ChainSignaturesAreValid()
|
D | KeyMintTest.cpp | 1244 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P() local 1245 ASSERT_TRUE(key_cert.get()); in TEST_P() 1250 ASSERT_TRUE(X509_verify(key_cert.get(), signing_pubkey.get())) in TEST_P() 1321 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in TEST_P() local 1322 ASSERT_TRUE(key_cert.get()); in TEST_P() 1327 ASSERT_TRUE(X509_verify(key_cert.get(), signing_pubkey.get())) in TEST_P()
|
/hardware/interfaces/security/rkp/aidl/vts/functional/ |
D | VtsRemotelyProvisionedComponentTests.cpp | 397 X509_Ptr key_cert(parse_cert_blob(attested_key_cert_chain[0].encodedCertificate)); in TEST_P() local 398 ASSERT_TRUE(key_cert.get()); in TEST_P() 403 ASSERT_TRUE(X509_verify(key_cert.get(), signing_pubkey.get())) in TEST_P()
|
/hardware/interfaces/security/keymint/aidl/vts/performance/ |
D | KeyMintBenchmark.cpp | 324 X509_Ptr key_cert(parse_cert_blob(cert_chain_[0].encodedCertificate)); in LocalRsaEncryptMessage() local 325 EVP_PKEY_Ptr pub_key(X509_get_pubkey(key_cert.get())); in LocalRsaEncryptMessage()
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 297 X509_Ptr key_cert(parse_cert_blob(chain[i])); in verify_chain() local 304 EXPECT_TRUE(!!key_cert.get() && !!signing_cert.get()); in verify_chain() 305 if (!key_cert.get() || !signing_cert.get()) return false; in verify_chain() 311 EXPECT_EQ(1, X509_verify(key_cert.get(), signing_pubkey.get())) in verify_chain() 315 X509_NAME_oneline(X509_get_issuer_name(key_cert.get()), nullptr, 0); in verify_chain() 321 char* cert_sub = X509_NAME_oneline(X509_get_subject_name(key_cert.get()), nullptr, 0); in verify_chain()
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 296 X509_Ptr key_cert(parse_cert_blob(chain[i])); in verify_chain() local 303 EXPECT_TRUE(!!key_cert.get() && !!signing_cert.get()); in verify_chain() 304 if (!key_cert.get() || !signing_cert.get()) return false; in verify_chain() 310 EXPECT_EQ(1, X509_verify(key_cert.get(), signing_pubkey.get())) in verify_chain() 315 X509_NAME_oneline(X509_get_issuer_name(key_cert.get()), nullptr, 0); in verify_chain() 320 char* cert_sub = X509_NAME_oneline(X509_get_subject_name(key_cert.get()), nullptr, 0); in verify_chain()
|