summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-06-10 15:12:13 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-06-10 15:12:13 +0700
commit3a8d9074ea8b061bfd2c66f88282262a1bf89931 (patch)
tree4c0200df96c2c684af36d4d12bf2e41784075400
parentRespect buffer size and use Streams (diff)
downloadBouncyCastle.NET-ed25519-3a8d9074ea8b061bfd2c66f88282262a1bf89931.tar.xz
Portability fix
-rw-r--r--crypto/src/crypto/macs/KMac.cs3
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;
         }