From a8866af2bf98dd3be651ae853ddf463a313e972a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 17 Oct 2015 23:21:07 +0700 Subject: https://github.com/bcgit/bc-csharp/issues/37 - Add alternative PGP methods involving passphrases to support UTF8 or caller-defined encodings --- crypto/test/src/openpgp/examples/PbeFileProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/test/src/openpgp/examples/PbeFileProcessor.cs') diff --git a/crypto/test/src/openpgp/examples/PbeFileProcessor.cs b/crypto/test/src/openpgp/examples/PbeFileProcessor.cs index 66b1cc4ed..961704407 100644 --- a/crypto/test/src/openpgp/examples/PbeFileProcessor.cs +++ b/crypto/test/src/openpgp/examples/PbeFileProcessor.cs @@ -127,7 +127,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Examples PgpEncryptedDataGenerator encGen = new PgpEncryptedDataGenerator( SymmetricKeyAlgorithmTag.Cast5, withIntegrityCheck, new SecureRandom()); - encGen.AddMethod(passPhrase); + encGen.AddMethod(passPhrase, HashAlgorithmTag.Sha1); Stream encOut = encGen.Open(outputStream, compressedData.Length); -- cgit 1.5.1