encrypt to signing key in openkeychain ui
This commit is contained in:
parent
93caae1342
commit
4a4e325bca
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue