mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 19:22:14 -05:00
Increase default RSA from 2048 to 4096 due to recent security speculations
This commit is contained in:
parent
6693b8b75d
commit
bf1334d6c0
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user