Merge "Reduce max keymaster message size to 2K" into oc-dev am: 42d61ce03a

am: ac06f7576e

Change-Id: Ib6e0f30a2ca4d6b075bdc4c232cbf47c6febc82e
This commit is contained in:
Shawn Willden 2017-09-12 06:53:16 +00:00 committed by android-build-merger
commit e5266362e9

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));
}
@ -2607,7 +2607,7 @@ TEST_F(EncryptionOperationsTest, RsaNoPaddingTooLong) {
}
/*
* EncryptionOperationsTest.RsaNoPaddingTooLong
* EncryptionOperationsTest.RsaNoPaddingTooLarge
*
* Verifies that raw RSA encryption of too-large (numerically) messages fails in the expected way.
*/