OSDN Git Service

Merge "Reduce max keymaster message size to 2K" into oc-dev am: 42d61ce03a
authorShawn Willden <swillden@google.com>
Tue, 12 Sep 2017 06:53:16 +0000 (06:53 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Tue, 12 Sep 2017 06:53:16 +0000 (06:53 +0000)
am: ac06f7576e

Change-Id: I219c56653ec9051d35a4c7c8f012c9c06e555881

keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp

index 78353ea..411d97b 100644 (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.
  */