diff options
author | Ashley Hughes <spirit.returned@gmail.com> | 2014-03-31 23:23:51 +0100 |
---|---|---|
committer | Ashley Hughes <spirit.returned@gmail.com> | 2014-03-31 23:23:51 +0100 |
commit | 5bc902dbb1834cc07e9f6712d7a43450028ef459 (patch) | |
tree | dc253c275aeec5762c1ed02afeb72f67b6afe69e /OpenPGP-Keychain | |
parent | 47b23a90d5bf395685ae4bdb75ae74f3047a02ab (diff) | |
download | open-keychain-5bc902dbb1834cc07e9f6712d7a43450028ef459.tar.gz open-keychain-5bc902dbb1834cc07e9f6712d7a43450028ef459.tar.bz2 open-keychain-5bc902dbb1834cc07e9f6712d7a43450028ef459.zip |
create three keys by default
Diffstat (limited to 'OpenPGP-Keychain')
-rw-r--r-- | OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java index 3bb2280c1..f616f7300 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java @@ -568,7 +568,7 @@ public class KeychainIntentService extends IntentService ArrayList<Integer> keyUsageList = new ArrayList<Integer>(); /* Operation */ - int keysTotal = 2; + int keysTotal = 3; int keysCreated = 0; setProgress( getApplicationContext().getResources(). @@ -591,6 +591,13 @@ public class KeychainIntentService extends IntentService keysCreated++; setProgress(keysCreated, keysTotal); + subKey = keyOperations.createKey(Id.choice.algorithm.rsa, + 4096, passphrase, false); + newKeys.add(subKey); + keyUsageList.add(KeyFlags.SIGN_DATA); + keysCreated++; + setProgress(keysCreated, keysTotal); + // TODO: default to one master for cert, one sub for encrypt and one sub // for sign |