File tree Expand file tree Collapse file tree
pg/src/test/java/org/bouncycastle/openpgp/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323import org .bouncycastle .openpgp .operator .jcajce .JcaPGPDigestCalculatorProviderBuilder ;
2424import org .bouncycastle .openpgp .operator .jcajce .JcePBESecretKeyDecryptorBuilder ;
2525import org .bouncycastle .test .PrintTestResult ;
26+ import org .bouncycastle .util .encoders .Hex ;
2627
2728public class PGPUnicodeTest
2829 extends TestCase
@@ -75,7 +76,7 @@ public void test_UmlautPassphrase()
7576 {
7677 BigInteger keyId = new BigInteger ("362961283C48132B9F14C5C3EC87272EFCB986D2" , 16 );
7778
78- String passphrase = new String ( "H\u00e4 ndle" . getBytes ( Charset . forName ( "UTF-16" )), Charset . forName ( "UTF-16" )) ;
79+ String passphrase = "H\u00e4 ndle" ;
7980// FileInputStream passwordFile = new FileInputStream("testdata/passphrase_for_test.txt");
8081// byte[] password = new byte[passwordFile.available()];
8182// passwordFile.read(password);
You can’t perform that action at this time.
0 commit comments