From 444468b3dd3c22d0bcbba9b4a922b7d4a3b31c87 Mon Sep 17 00:00:00 2001 From: Max Bires Date: Thu, 19 Dec 2019 00:49:24 -0800 Subject: [PATCH] Updating a public exponent check This is updating the public exponent being checked from 3 to 65537. The test was updated to use the latter public exponent without the check also being updated Test: atest VtsHalKeymasterV4_0TargetTest Change-Id: I55fa2e67c94f0c52a1d65644f16b5f703a661e00 --- keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp b/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp index 35a2fb15a9..5e36273105 100644 --- a/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp +++ b/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp @@ -546,7 +546,7 @@ TEST_P(NewKeyGenerationTest, Rsa) { EXPECT_TRUE(crypto_params.Contains(TAG_ALGORITHM, Algorithm::RSA)); EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)) << "Key size " << key_size << "missing"; - EXPECT_TRUE(crypto_params.Contains(TAG_RSA_PUBLIC_EXPONENT, 3U)); + EXPECT_TRUE(crypto_params.Contains(TAG_RSA_PUBLIC_EXPONENT, 65537U)); CheckedDeleteKey(&key_blob); }