From ce2bebdd79cf7536b06c2d67cdee8867475a3b10 Mon Sep 17 00:00:00 2001 From: Subrahmanyaman Date: Fri, 28 Apr 2023 23:37:02 +0000 Subject: [PATCH] Strongbox may not support 1024 bit key size for RSA. Strongbox may not support 1024 bit key size for RSA. So in NoUserConfirmation test updated the key size to 2048 so that the test works for both TEE and Strongbox. Bug: 280117495 Test: run VtsAidlKeyMintTarget Change-Id: I32bb28001aca9b69eedb1bd3d0bcff43052d06e4 --- security/keymint/aidl/vts/functional/KeyMintTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/keymint/aidl/vts/functional/KeyMintTest.cpp b/security/keymint/aidl/vts/functional/KeyMintTest.cpp index e99149bf17..bdec4d3fb4 100644 --- a/security/keymint/aidl/vts/functional/KeyMintTest.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintTest.cpp @@ -3119,7 +3119,7 @@ TEST_P(SigningOperationsTest, RsaPaddingNoneDoesNotAllowOther) { */ TEST_P(SigningOperationsTest, NoUserConfirmation) { ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() - .RsaSigningKey(1024, 65537) + .RsaSigningKey(2048, 65537) .Digest(Digest::NONE) .Padding(PaddingMode::NONE) .Authorization(TAG_NO_AUTH_REQUIRED)