From 2e68348d984d81c73a41e8db39183c55cff8faf9 Mon Sep 17 00:00:00 2001 From: DanielMo Date: Fri, 9 May 2014 15:38:57 +0800 Subject: 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 --- support/src/test/java/libcore/java/security/StandardNames.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support/src') 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(); 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); -- cgit v1.1