summaryrefslogtreecommitdiff
path: root/android_keymaster_test.cpp
diff options
context:
space:
mode:
authorShawn Willden <swillden@google.com>2015-05-26 10:16:49 -0600
committerShawn Willden <swillden@google.com>2015-05-26 10:21:55 -0600
commit7bae132f732a73dc53b5ffc5e3eed0176e93a00c (patch)
treeb3846f96dbd5f13e9dce97fd0274760ca007a77d /android_keymaster_test.cpp
parent0cb6942d3efb6c056f96321c82a4b3d86af601d6 (diff)
downloadkeymaster-7bae132f732a73dc53b5ffc5e3eed0176e93a00c.tar.gz
Fix off-by-one error in PKCS#1 v1.5 encryption padding size.
Change-Id: I0fdfe3223b351d4a064e5dac0aa5d732fa0ab073
Diffstat (limited to 'android_keymaster_test.cpp')
-rw-r--r--android_keymaster_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/android_keymaster_test.cpp b/android_keymaster_test.cpp
index e3faefa..5534a3c 100644
--- a/android_keymaster_test.cpp
+++ b/android_keymaster_test.cpp
@@ -1379,7 +1379,7 @@ TEST_F(EncryptionOperationsTest, RsaPkcs1RoundTrip) {
TEST_F(EncryptionOperationsTest, RsaPkcs1TooLarge) {
ASSERT_EQ(KM_ERROR_OK, GenerateKey(AuthorizationSetBuilder().RsaEncryptionKey(512, 3).Padding(
KM_PAD_RSA_PKCS1_1_5_ENCRYPT)));
- string message = "12345678901234567890123456789012345678901234567890123";
+ string message = "123456789012345678901234567890123456789012345678901234";
string result;
size_t input_consumed;