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;
}
|