commit | 0564249f9359b7b52d968d839c4bef35ec612c14 | [log] [tgz] |
---|---|---|
author | subrahmanyaman <subrahmanyaman@google.com> | Sat Feb 05 07:10:56 2022 +0000 |
committer | subrahmanyaman <subrahmanyaman@google.com> | Sat Feb 05 07:12:33 2022 +0000 |
tree | e7d6cbae7013d16e71e6450f8c1df41afb44075c | |
parent | 1048b42ea600458b224a325c52ba9d431356acf1 [diff] [blame] |
Fixed vts tests cases which do not support factory attestation. Test: Run keymint Vts tests. Change-Id: I8055fef8df5ec77e317f810f9b95a53311b23cf0
diff --git a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp index 146a527..ff4036c 100644 --- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
@@ -1228,6 +1228,14 @@ } } +vector<uint64_t> KeyMintAidlTestBase::ValidExponents() { + if (SecLevel() == SecurityLevel::STRONGBOX) { + return {65537}; + } else { + return {3, 65537}; + } +} + vector<Digest> KeyMintAidlTestBase::ValidDigests(bool withNone, bool withMD5) { switch (SecLevel()) { case SecurityLevel::SOFTWARE: