summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-10-18 12:22:01 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-10-18 12:22:01 +0700
commitf5f9f85725225dd98b511ba2c789aeb47293a18c (patch)
tree9b74a8950a977e6f917b78fab90dd322afe1c14b /crypto
parentSIC renamed to CTR, minimum IV length check added (diff)
downloadBouncyCastle.NET-ed25519-f5f9f85725225dd98b511ba2c789aeb47293a18c.tar.xz
Switch to Strings.ToByteArray as is used in the Java API
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/crypto/PbeParametersGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/PbeParametersGenerator.cs b/crypto/src/crypto/PbeParametersGenerator.cs
index 21679d45e..97d23df90 100644
--- a/crypto/src/crypto/PbeParametersGenerator.cs
+++ b/crypto/src/crypto/PbeParametersGenerator.cs
@@ -130,7 +130,7 @@ namespace Org.BouncyCastle.Crypto
             if (password == null)
                 return new byte[0];
 
-            return Strings.ToAsciiByteArray(password);
+            return Strings.ToByteArray(password);
         }
 
         [Obsolete("Use version taking 'char[]' instead")]
@@ -140,7 +140,7 @@ namespace Org.BouncyCastle.Crypto
             if (password == null)
                 return new byte[0];
 
-            return Strings.ToAsciiByteArray(password);
+            return Strings.ToByteArray(password);
         }
 
         /**