rename encryptAndSign to signAndEncrypt
This commit is contained in:
@@ -331,7 +331,7 @@ public class KeychainIntentService extends IntentService implements ProgressDial
|
||||
.getForceV3Signatures());
|
||||
} else {
|
||||
Log.d(Constants.TAG, "encrypt...");
|
||||
operation.encryptAndSign(useAsciiArmor, compressionId, encryptionKeyIds,
|
||||
operation.signAndEncrypt(useAsciiArmor, compressionId, encryptionKeyIds,
|
||||
encryptionPassphrase, Preferences.getPreferences(this)
|
||||
.getDefaultEncryptionAlgorithm(), secretKeyId, Preferences
|
||||
.getPreferences(this).getDefaultHashAlgorithm(), Preferences
|
||||
|
||||
@@ -242,11 +242,11 @@ public class OpenPgpService extends RemoteService {
|
||||
return;
|
||||
}
|
||||
|
||||
operation.encryptAndSign(asciiArmor, appSettings.getCompression(), keyIds, null,
|
||||
operation.signAndEncrypt(asciiArmor, appSettings.getCompression(), keyIds, null,
|
||||
appSettings.getEncryptionAlgorithm(), appSettings.getKeyId(),
|
||||
appSettings.getHashAlgorithm(), true, passphrase);
|
||||
} else {
|
||||
operation.encryptAndSign(asciiArmor, appSettings.getCompression(), keyIds, null,
|
||||
operation.signAndEncrypt(asciiArmor, appSettings.getCompression(), keyIds, null,
|
||||
appSettings.getEncryptionAlgorithm(), Id.key.none,
|
||||
appSettings.getHashAlgorithm(), true, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user