mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
builds, but intents are not called or handled correctly
This commit is contained in:
parent
715ba7604c
commit
fa0bd5edb4
@ -588,18 +588,21 @@ public class KeychainIntentService extends IntentService implements ProgressDial
|
|||||||
/* Operation */
|
/* Operation */
|
||||||
PgpKeyOperation keyOperations = new PgpKeyOperation(this, this);
|
PgpKeyOperation keyOperations = new PgpKeyOperation(this, this);
|
||||||
|
|
||||||
PGPSecretKeyRing masterKeyRing = keyOperations.createKey(Id.choice.algorithm.rsa,
|
PGPSecretKey masterKey = keyOperations.createKey(Id.choice.algorithm.rsa,
|
||||||
4096, passphrase, null);
|
4096, passphrase, true);
|
||||||
|
|
||||||
PGPSecretKeyRing subKeyRing = keyOperations.createKey(Id.choice.algorithm.rsa,
|
PGPSecretKey subKey = keyOperations.createKey(Id.choice.algorithm.rsa,
|
||||||
4096, passphrase, masterKeyRing.getSecretKey());
|
4096, passphrase, false);
|
||||||
|
|
||||||
|
// TODO: default to one master for cert, one sub for encrypt and one sub
|
||||||
|
// for sign
|
||||||
|
|
||||||
/* Output */
|
/* Output */
|
||||||
Bundle resultData = new Bundle();
|
Bundle resultData = new Bundle();
|
||||||
resultData.putByteArray(RESULT_NEW_KEY,
|
resultData.putByteArray(RESULT_NEW_KEY,
|
||||||
PgpConversionHelper.PGPSecretKeyRingToBytes(masterKeyRing));
|
PgpConversionHelper.PGPSecretKeyToBytes(masterKey));
|
||||||
resultData.putByteArray(RESULT_NEW_KEY2,
|
resultData.putByteArray(RESULT_NEW_KEY2,
|
||||||
PgpConversionHelper.PGPSecretKeyRingToBytes(subKeyRing));
|
PgpConversionHelper.PGPSecretKeyToBytes(subKey));
|
||||||
|
|
||||||
OtherHelper.logDebugBundle(resultData, "resultData");
|
OtherHelper.logDebugBundle(resultData, "resultData");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user