commit | d72b35175f68aa27e90570889b981b5071c1aac7 | [log] [tgz] |
---|---|---|
author | Prashant Patil <patilprashant@google.com> | Tue Nov 16 08:19:19 2021 +0000 |
committer | Prashant Patil <patilprashant@google.com> | Tue Nov 16 15:58:09 2021 +0000 |
tree | fa31d3e473e6cf123ac1e20e20226cb128e9f7b7 | |
parent | 4915df85a0d5a726a49b4c262403502272a34c2e [diff] |
KeyMint: Test invalid AES key sizes Added invalid AES key sizes to be tested for Default and TEE based Keymint implementations. Bug: 205679497 Test: run vts -m VtsAidlKeyMintTargetTest Change-Id: Id9044cdc0324258c15f1daa81487c7819a780fe8
diff --git a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp index 12ce859..6140df1 100644 --- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
@@ -1067,6 +1067,8 @@ } } else { switch (algorithm) { + case Algorithm::AES: + return {64, 96, 131, 512}; case Algorithm::TRIPLE_DES: return {56}; default: