diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-18 12:22:01 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-18 12:22:01 +0700 |
commit | f5f9f85725225dd98b511ba2c789aeb47293a18c (patch) | |
tree | 9b74a8950a977e6f917b78fab90dd322afe1c14b /crypto | |
parent | SIC renamed to CTR, minimum IV length check added (diff) | |
download | BouncyCastle.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.cs | 4 |
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); } /** |