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/ByteArrayHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/test/src/openpgp/examples/ByteArrayHandler.cs') diff --git a/crypto/test/src/openpgp/examples/ByteArrayHandler.cs b/crypto/test/src/openpgp/examples/ByteArrayHandler.cs index 676db8766..b5098ff66 100644 --- a/crypto/test/src/openpgp/examples/ByteArrayHandler.cs +++ b/crypto/test/src/openpgp/examples/ByteArrayHandler.cs @@ -123,7 +123,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Examples } PgpEncryptedDataGenerator encGen = new PgpEncryptedDataGenerator(algorithm, new SecureRandom()); - encGen.AddMethod(passPhrase); + encGen.AddMethod(passPhrase, HashAlgorithmTag.Sha1); Stream encOut = encGen.Open(output, compressedData.Length); -- cgit 1.5.1