From 3a8d9074ea8b061bfd2c66f88282262a1bf89931 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 10 Jun 2021 15:12:13 +0700 Subject: Portability fix --- crypto/src/crypto/macs/KMac.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crypto/src') 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; } -- cgit 1.5.1