mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 09:42:16 -05:00
use setEncryptToSigner for asymmetric encryption
(tested and works, closes #569)
This commit is contained in:
parent
5a1120e791
commit
9c5c013538
@ -192,8 +192,6 @@ public class PgpSignEncrypt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: test this option!
|
|
||||||
*
|
|
||||||
* @param encryptToSigner
|
* @param encryptToSigner
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -324,6 +324,7 @@ public class KeychainIntentService extends IntentService
|
|||||||
.setEncryptionMasterKeyIds(encryptionKeyIds)
|
.setEncryptionMasterKeyIds(encryptionKeyIds)
|
||||||
.setSymmetricPassphrase(symmetricPassphrase)
|
.setSymmetricPassphrase(symmetricPassphrase)
|
||||||
.setSignatureMasterKeyId(signatureKeyId)
|
.setSignatureMasterKeyId(signatureKeyId)
|
||||||
|
.setEncryptToSigner(true)
|
||||||
.setSignatureHashAlgorithm(
|
.setSignatureHashAlgorithm(
|
||||||
Preferences.getPreferences(this).getDefaultHashAlgorithm())
|
Preferences.getPreferences(this).getDefaultHashAlgorithm())
|
||||||
.setSignaturePassphrase(
|
.setSignaturePassphrase(
|
||||||
|
@ -226,9 +226,6 @@ public class EncryptAsymmetricFragment extends Fragment {
|
|||||||
private void selectPublicKeys() {
|
private void selectPublicKeys() {
|
||||||
Intent intent = new Intent(getActivity(), SelectPublicKeyActivity.class);
|
Intent intent = new Intent(getActivity(), SelectPublicKeyActivity.class);
|
||||||
Vector<Long> keyIds = new Vector<Long>();
|
Vector<Long> keyIds = new Vector<Long>();
|
||||||
if (mSecretKeyId != 0) {
|
|
||||||
keyIds.add(mSecretKeyId);
|
|
||||||
}
|
|
||||||
if (mEncryptionKeyIds != null && mEncryptionKeyIds.length > 0) {
|
if (mEncryptionKeyIds != null && mEncryptionKeyIds.length > 0) {
|
||||||
for (int i = 0; i < mEncryptionKeyIds.length; ++i) {
|
for (int i = 0; i < mEncryptionKeyIds.length; ++i) {
|
||||||
keyIds.add(mEncryptionKeyIds[i]);
|
keyIds.add(mEncryptionKeyIds[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user