Reduce max keymaster message size to 2K

Bug: 63745895
Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I9b8c2e551f04bd2124462095f232bd08ff1f63c6
This commit is contained in:
Shawn Willden 2017-08-03 14:10:50 -06:00
parent bb38d1487c
commit cf1f4870fc

View file

@ -1774,7 +1774,7 @@ TEST_F(SigningOperationsTest, EcdsaNoDigestHugeData) {
.Authorization(TAG_NO_AUTH_REQUIRED)
.EcdsaSigningKey(224)
.Digest(Digest::NONE)));
string message(64 * 1024, 'a');
string message(2 * 1024, 'a');
SignMessage(message, AuthorizationSetBuilder().Digest(Digest::NONE));
}
@ -2605,7 +2605,7 @@ TEST_F(EncryptionOperationsTest, RsaNoPaddingTooLong) {
}
/*
* EncryptionOperationsTest.RsaNoPaddingTooLong
* EncryptionOperationsTest.RsaNoPaddingTooLarge
*
* Verifies that raw RSA encryption of too-large (numerically) messages fails in the expected way.
*/