diff options
author | Selene Huang <seleneh@google.com> | 2021-04-21 15:10:36 -0700 |
---|---|---|
committer | Selene Huang <seleneh@google.com> | 2021-04-24 22:43:13 -0700 |
commit | 8f9494c4f6becc69eea45cbb6b0a09d6ab6a0b5c (patch) | |
tree | 9f80d711ea5f256934c66d7005cbbed351bcb0d3 /security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp | |
parent | 24c422c48baa79c42148cd47a9e34139ec2eebea (diff) |
Added various vts tests for attestKey.
- Added tests for signing attest key with factory chain.
- Added test for signing encryption keys.
- Added tests for chaining many RSA attest keys on the same chain.
- Added tests for chaining many Ec attest keys on the same chain.
- Added tests for alternate chaining of rsa-ec-rsa-ec-rsa attesti
keys on the same chain.
Test: atest VtsAidlKeyMintTargetTest
Change-Id: I9c67e2b928d6bba6cc4074a4b65f639f33c9ec26
Diffstat (limited to 'security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp')
-rw-r--r-- | security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp index 64ef06666f..6202a8ba97 100644 --- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp @@ -1142,7 +1142,10 @@ AssertionResult ChainSignaturesAreValid(const vector<Certificate>& chain) { string cert_issuer = x509NameToStr(X509_get_issuer_name(key_cert.get())); string signer_subj = x509NameToStr(X509_get_subject_name(signing_cert.get())); if (cert_issuer != signer_subj) { - return AssertionFailure() << "Cert " << i << " has wrong issuer.\n" << cert_data.str(); + return AssertionFailure() << "Cert " << i << " has wrong issuer.\n" + << " Signer subject is " << signer_subj + << " Issuer subject is " << cert_issuer << endl + << cert_data.str(); } } |