summaryrefslogtreecommitdiff
path: root/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
diff options
context:
space:
mode:
authorPrashant Patil <patilprashant@google.com>2021-11-16 08:19:19 +0000
committerPrashant Patil <patilprashant@google.com>2021-11-16 15:58:09 +0000
commitd72b35175f68aa27e90570889b981b5071c1aac7 (patch)
treefa31d3e473e6cf123ac1e20e20226cb128e9f7b7 /security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
parent4915df85a0d5a726a49b4c262403502272a34c2e (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
Diffstat (limited to 'security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp')
-rw-r--r--security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
index 12ce859f29..6140df1350 100644
--- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
+++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
@@ -1067,6 +1067,8 @@ vector<uint32_t> KeyMintAidlTestBase::InvalidKeySizes(Algorithm algorithm) {
}
} else {
switch (algorithm) {
+ case Algorithm::AES:
+ return {64, 96, 131, 512};
case Algorithm::TRIPLE_DES:
return {56};
default: