summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2017-06-06 10:11:07 -0700
committerJanis Danisevskis <jdanis@google.com>2017-06-13 13:30:15 -0700
commit39daaa0f96b248539c28f62e6a245798abb45d1b (patch)
tree4d23752b9fbfe7545d818fb4d2d75b1012135a6f
parent32ee11026958f9fe0f358410897160a848a89280 (diff)
downloadandroid_hardware_interfaces-39daaa0f96b248539c28f62e6a245798abb45d1b.tar.gz
android_hardware_interfaces-39daaa0f96b248539c28f62e6a245798abb45d1b.tar.bz2
android_hardware_interfaces-39daaa0f96b248539c28f62e6a245798abb45d1b.zip
Purge unsupported RSA key sizes from VTS tests
Support for 256 bit RSA keys are not mandated by keymaster specs and must not be used in the VTS tests. Bug: 62581389 Change-Id: If315088db2752ac2efe31fdb95db7ca13c3ce225
-rw-r--r--keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp b/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp
index 54c5ad571..0c888dc36 100644
--- a/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp
+++ b/keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp
@@ -1329,7 +1329,7 @@ typedef KeymasterHidlTest GetKeyCharacteristicsTest;
*/
TEST_F(GetKeyCharacteristicsTest, SimpleRsa) {
ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder()
- .RsaSigningKey(256, 3)
+ .RsaSigningKey(1024, 3)
.Digest(Digest::NONE)
.Padding(PaddingMode::NONE)));
@@ -2201,7 +2201,7 @@ typedef KeymasterHidlTest ExportKeyTest;
*/
TEST_F(ExportKeyTest, RsaUnsupportedKeyFormat) {
ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder()
- .RsaSigningKey(256, 3)
+ .RsaSigningKey(1024, 3)
.Digest(Digest::NONE)
.Padding(PaddingMode::NONE)));
HidlBuf export_data;
@@ -2218,7 +2218,7 @@ TEST_F(ExportKeyTest, RsaUnsupportedKeyFormat) {
TEST_F(ExportKeyTest, DISABLED_RsaCorruptedKeyBlob) {
ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder()
.Authorization(TAG_NO_AUTH_REQUIRED)
- .RsaSigningKey(256, 3)
+ .RsaSigningKey(1024, 3)
.Digest(Digest::NONE)
.Padding(PaddingMode::NONE)));
for (size_t i = 0; i < key_blob_.size(); ++i) {