diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-06-10 15:12:13 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-06-10 15:12:13 +0700 |
commit | 3a8d9074ea8b061bfd2c66f88282262a1bf89931 (patch) | |
tree | 4c0200df96c2c684af36d4d12bf2e41784075400 /crypto/src | |
parent | Respect buffer size and use Streams (diff) | |
download | BouncyCastle.NET-ed25519-3a8d9074ea8b061bfd2c66f88282262a1bf89931.tar.xz |
Portability fix
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/macs/KMac.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/crypto/macs/KMac.cs b/crypto/src/crypto/macs/KMac.cs index 889131d8c..05031ac2f 100644 --- a/crypto/src/crypto/macs/KMac.cs +++ b/crypto/src/crypto/macs/KMac.cs @@ -1,5 +1,4 @@ using System; -using System.Text; using Org.BouncyCastle.Crypto.Digests; using Org.BouncyCastle.Crypto.Parameters; @@ -22,7 +21,7 @@ namespace Org.BouncyCastle.Crypto.Macs public KMac(int bitLength, byte[] S) { - this.cshake = new CShakeDigest(bitLength, Encoding.ASCII.GetBytes("KMAC"), S); + this.cshake = new CShakeDigest(bitLength, Strings.ToAsciiByteArray("KMAC"), S); this.bitLength = bitLength; this.outputLength = bitLength * 2 / 8; } |