Increase default RSA from 2048 to 4096 due to recent security speculations

This commit is contained in:
Dominik Schürmann 2013-09-09 19:50:33 +02:00
parent 6693b8b75d
commit bf1334d6c0

View File

@ -574,17 +574,17 @@ public class KeychainIntentService extends IntentService implements ProgressDial
sendErrorToHandler(e); sendErrorToHandler(e);
} }
} else if (ACTION_GENERATE_DEFAULT_RSA_KEYS.equals(action)) { } else if (ACTION_GENERATE_DEFAULT_RSA_KEYS.equals(action)) {
// generate one RSA 2048 key for signing and one subkey for encrypting! // generate one RSA 4096 key for signing and one subkey for encrypting!
try { try {
/* Input */ /* Input */
String passphrase = data.getString(GENERATE_KEY_SYMMETRIC_PASSPHRASE); String passphrase = data.getString(GENERATE_KEY_SYMMETRIC_PASSPHRASE);
/* Operation */ /* Operation */
PGPSecretKeyRing masterKeyRing = PgpMain.createKey(this, Id.choice.algorithm.rsa, PGPSecretKeyRing masterKeyRing = PgpMain.createKey(this, Id.choice.algorithm.rsa,
2048, passphrase, null); 4096, passphrase, null);
PGPSecretKeyRing subKeyRing = PgpMain.createKey(this, Id.choice.algorithm.rsa, PGPSecretKeyRing subKeyRing = PgpMain.createKey(this, Id.choice.algorithm.rsa,
2048, passphrase, masterKeyRing.getSecretKey()); 4096, passphrase, masterKeyRing.getSecretKey());
/* Output */ /* Output */
Bundle resultData = new Bundle(); Bundle resultData = new Bundle();