diff options
| author | 2015-03-21 19:37:46 +0000 | |
|---|---|---|
| committer | 2015-03-21 19:37:46 +0000 | |
| commit | 6050eb5459a00b95bf135d40e9e37cd043c863e4 (patch) | |
| tree | 4b09e9bafececaac894c8b0a4892311c4789d792 | |
| parent | 7163a0a1a68e464b00273e71851b56769aecaeb3 (diff) | |
| parent | 5b11b3d6c50c9fc705ae73a2ffcc4b9b57f96c78 (diff) | |
am 5b11b3d6: am 31cee318: Merge "Specify public exponent for RSA"
* commit '5b11b3d6c50c9fc705ae73a2ffcc4b9b57f96c78':
  Specify public exponent for RSA
| -rw-r--r-- | keystore/tests/src/android/security/KeyStoreTest.java | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/keystore/tests/src/android/security/KeyStoreTest.java b/keystore/tests/src/android/security/KeyStoreTest.java index f935bb13f2d4..f0b07a64d690 100644 --- a/keystore/tests/src/android/security/KeyStoreTest.java +++ b/keystore/tests/src/android/security/KeyStoreTest.java @@ -36,6 +36,7 @@ import java.nio.charset.StandardCharsets;  import java.util.Arrays;  import java.util.Date;  import java.util.HashSet; +import java.security.spec.RSAKeyGenParameterSpec;  import android.util.Log;  import android.util.Base64; @@ -713,6 +714,8 @@ public class KeyStoreTest extends ActivityUnitTestCase<Activity> {          args.addInt(KeymasterDefs.KM_TAG_KEY_SIZE, 2048);          args.addBlob(KeymasterDefs.KM_TAG_APPLICATION_ID, null);          args.addBlob(KeymasterDefs.KM_TAG_APPLICATION_DATA, null); +        args.addBlob(KeymasterDefs.KM_TAG_RSA_PUBLIC_EXPONENT, +                RSAKeyGenParameterSpec.F4.toByteArray());          KeyCharacteristics outCharacteristics = new KeyCharacteristics();          int result = mKeyStore.generateKey(name, args, 0, outCharacteristics); @@ -750,6 +753,8 @@ public class KeyStoreTest extends ActivityUnitTestCase<Activity> {          args.addInt(KeymasterDefs.KM_TAG_BLOCK_MODE, KeymasterDefs.KM_MODE_ECB);          args.addBlob(KeymasterDefs.KM_TAG_APPLICATION_ID, new byte[] {0x01, 0x02, 0x03});          args.addBlob(KeymasterDefs.KM_TAG_APPLICATION_DATA, null); +        args.addBlob(KeymasterDefs.KM_TAG_RSA_PUBLIC_EXPONENT, +                RSAKeyGenParameterSpec.F4.toByteArray());          KeyCharacteristics outCharacteristics = new KeyCharacteristics();          int result = mKeyStore.generateKey(name, args, 0, outCharacteristics); |