Merge "Reduce max keymaster message size to 2K" into oc-dev

This commit is contained in:
TreeHugger Robot 2017-09-12 06:46:22 +00:00 committed by Android (Google) Code Review
commit 42d61ce03a

View file

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