mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 12:32:17 -05:00
rename encryptAndSign to signAndEncrypt
This commit is contained in:
parent
5aebd115d4
commit
93b460a289
@ -111,30 +111,7 @@ public class PgpOperation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public void signAndEncrypt(boolean useAsciiArmor, int compression, long[] encryptionKeyIds,
|
||||||
* Encrypt and Sign data
|
|
||||||
*
|
|
||||||
* @param mContext
|
|
||||||
* @param mProgress
|
|
||||||
* @param mData
|
|
||||||
* @param mOutStream
|
|
||||||
* @param useAsciiArmor
|
|
||||||
* @param compression
|
|
||||||
* @param encryptionKeyIds
|
|
||||||
* @param symmetricEncryptionAlgorithm
|
|
||||||
* @param encryptionPassphrase
|
|
||||||
* @param signatureKeyId
|
|
||||||
* @param signatureHashAlgorithm
|
|
||||||
* @param signatureForceV3
|
|
||||||
* @param signaturePassphrase
|
|
||||||
* @throws IOException
|
|
||||||
* @throws PgpGeneralException
|
|
||||||
* @throws PGPException
|
|
||||||
* @throws NoSuchProviderException
|
|
||||||
* @throws NoSuchAlgorithmException
|
|
||||||
* @throws SignatureException
|
|
||||||
*/
|
|
||||||
public void encryptAndSign(boolean useAsciiArmor, int compression, long[] encryptionKeyIds,
|
|
||||||
String encryptionPassphrase, int symmetricEncryptionAlgorithm, long signatureKeyId,
|
String encryptionPassphrase, int symmetricEncryptionAlgorithm, long signatureKeyId,
|
||||||
int signatureHashAlgorithm, boolean signatureForceV3, String signaturePassphrase)
|
int signatureHashAlgorithm, boolean signatureForceV3, String signaturePassphrase)
|
||||||
throws IOException, PgpGeneralException, PGPException, NoSuchProviderException,
|
throws IOException, PgpGeneralException, PGPException, NoSuchProviderException,
|
||||||
|
@ -331,7 +331,7 @@ public class KeychainIntentService extends IntentService implements ProgressDial
|
|||||||
.getForceV3Signatures());
|
.getForceV3Signatures());
|
||||||
} else {
|
} else {
|
||||||
Log.d(Constants.TAG, "encrypt...");
|
Log.d(Constants.TAG, "encrypt...");
|
||||||
operation.encryptAndSign(useAsciiArmor, compressionId, encryptionKeyIds,
|
operation.signAndEncrypt(useAsciiArmor, compressionId, encryptionKeyIds,
|
||||||
encryptionPassphrase, Preferences.getPreferences(this)
|
encryptionPassphrase, Preferences.getPreferences(this)
|
||||||
.getDefaultEncryptionAlgorithm(), secretKeyId, Preferences
|
.getDefaultEncryptionAlgorithm(), secretKeyId, Preferences
|
||||||
.getPreferences(this).getDefaultHashAlgorithm(), Preferences
|
.getPreferences(this).getDefaultHashAlgorithm(), Preferences
|
||||||
|
@ -242,11 +242,11 @@ public class OpenPgpService extends RemoteService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
operation.encryptAndSign(asciiArmor, appSettings.getCompression(), keyIds, null,
|
operation.signAndEncrypt(asciiArmor, appSettings.getCompression(), keyIds, null,
|
||||||
appSettings.getEncryptionAlgorithm(), appSettings.getKeyId(),
|
appSettings.getEncryptionAlgorithm(), appSettings.getKeyId(),
|
||||||
appSettings.getHashAlgorithm(), true, passphrase);
|
appSettings.getHashAlgorithm(), true, passphrase);
|
||||||
} else {
|
} else {
|
||||||
operation.encryptAndSign(asciiArmor, appSettings.getCompression(), keyIds, null,
|
operation.signAndEncrypt(asciiArmor, appSettings.getCompression(), keyIds, null,
|
||||||
appSettings.getEncryptionAlgorithm(), Id.key.none,
|
appSettings.getEncryptionAlgorithm(), Id.key.none,
|
||||||
appSettings.getHashAlgorithm(), true, null);
|
appSettings.getHashAlgorithm(), true, null);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user