Due to compatiblity switch from SHA512 to SHA256

This commit is contained in:
Dominik Schürmann
2014-09-07 17:58:28 +02:00
parent c026dac8fc
commit d172058150
4 changed files with 58 additions and 39 deletions

View File

@@ -125,7 +125,7 @@ public class PgpKeyOperation {
* http://kbsriram.com/2013/01/generating-rsa-keys-with-bouncycastle.html
*/
private static final int SECRET_KEY_ENCRYPTOR_S2K_COUNT = 0x60;
private static final int SECRET_KEY_ENCRYPTOR_HASH_ALGO = HashAlgorithmTags.SHA512;
private static final int SECRET_KEY_ENCRYPTOR_HASH_ALGO = HashAlgorithmTags.SHA256;
private static final int SECRET_KEY_ENCRYPTOR_SYMMETRIC_ALGO = SymmetricKeyAlgorithmTags.AES_256;
public PgpKeyOperation(Progressable progress) {