encrypt to signing key in openkeychain ui
This commit is contained in:
@@ -649,6 +649,9 @@ public class EncryptFilesFragment
|
|||||||
|
|
||||||
data.setEncryptionMasterKeyIds(encryptionKeyIds);
|
data.setEncryptionMasterKeyIds(encryptionKeyIds);
|
||||||
data.setSignatureMasterKeyId(signingKeyId);
|
data.setSignatureMasterKeyId(signingKeyId);
|
||||||
|
if (signingKeyId != Constants.key.none) {
|
||||||
|
data.setAdditionalEncryptId(signingKeyId);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Passphrase passphrase = modeFragment.getSymmetricPassphrase();
|
Passphrase passphrase = modeFragment.getSymmetricPassphrase();
|
||||||
if (passphrase == null) {
|
if (passphrase == null) {
|
||||||
|
|||||||
@@ -264,6 +264,9 @@ public class EncryptTextFragment
|
|||||||
|
|
||||||
data.setEncryptionMasterKeyIds(encryptionKeyIds);
|
data.setEncryptionMasterKeyIds(encryptionKeyIds);
|
||||||
data.setSignatureMasterKeyId(signingKeyId);
|
data.setSignatureMasterKeyId(signingKeyId);
|
||||||
|
if (signingKeyId != Constants.key.none) {
|
||||||
|
data.setAdditionalEncryptId(signingKeyId);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Passphrase passphrase = modeFragment.getSymmetricPassphrase();
|
Passphrase passphrase = modeFragment.getSymmetricPassphrase();
|
||||||
if (passphrase == null) {
|
if (passphrase == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user