summaryrefslogtreecommitdiffstats
path: root/support/src
diff options
context:
space:
mode:
authorDanielMo <DanielMo@fih-foxconn.com>2014-05-09 15:38:57 +0800
committerDanielMo <DanielMo@fih-foxconn.com>2014-05-09 15:39:48 +0800
commit2e68348d984d81c73a41e8db39183c55cff8faf9 (patch)
tree88efcdf196529e878f3c6fec571a3e4a9241eab8 /support/src
parent4f1bfee1a72d7842aa5ce565463ab20466368213 (diff)
downloadlibcore-2e68348d984d81c73a41e8db39183c55cff8faf9.zip
libcore-2e68348d984d81c73a41e8db39183c55cff8faf9.tar.gz
libcore-2e68348d984d81c73a41e8db39183c55cff8faf9.tar.bz2
Enlarge the minimum key size of RSA to enhance the security
We have modified OpenSSL source code such that size of RSA key should be at least 512 bits or more to support higher quality key generation as lower key sizes are vulnerable to attack. Thus we need to increase the size to 512 to avoid CTS failures, please refer to it also. https://code.google.com/p/android/issues/detail?id=66394 Change-Id: I95d734033227ed1497a5bc0fd0010f62b12c01c5 Signed-off-by: DanielMo <DanielMo@fih-foxconn.com>
Diffstat (limited to 'support/src')
-rw-r--r--support/src/test/java/libcore/java/security/StandardNames.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/src/test/java/libcore/java/security/StandardNames.java b/support/src/test/java/libcore/java/security/StandardNames.java
index da6fcd6..e37a788 100644
--- a/support/src/test/java/libcore/java/security/StandardNames.java
+++ b/support/src/test/java/libcore/java/security/StandardNames.java
@@ -897,7 +897,7 @@ public final class StandardNames extends Assert {
MINIMUM_KEY_SIZE = new HashMap<String, Integer>();
PRIVATE_KEY_SPEC_CLASSES.put("RSA", RSAPrivateCrtKeySpec.class);
PUBLIC_KEY_SPEC_CLASSES.put("RSA", RSAPublicKeySpec.class);
- MINIMUM_KEY_SIZE.put("RSA", 256);
+ MINIMUM_KEY_SIZE.put("RSA", 512);
PRIVATE_KEY_SPEC_CLASSES.put("DSA", DSAPrivateKeySpec.class);
PUBLIC_KEY_SPEC_CLASSES.put("DSA", DSAPublicKeySpec.class);
MINIMUM_KEY_SIZE.put("DSA", 512);