Skip to content

Commit 3a8d907

Browse files
committed
Portability fix
1 parent c5d6519 commit 3a8d907

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crypto/src/crypto/macs/KMac.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Text;
32

43
using Org.BouncyCastle.Crypto.Digests;
54
using Org.BouncyCastle.Crypto.Parameters;
@@ -22,7 +21,7 @@ public class KMac
2221

2322
public KMac(int bitLength, byte[] S)
2423
{
25-
this.cshake = new CShakeDigest(bitLength, Encoding.ASCII.GetBytes("KMAC"), S);
24+
this.cshake = new CShakeDigest(bitLength, Strings.ToAsciiByteArray("KMAC"), S);
2625
this.bitLength = bitLength;
2726
this.outputLength = bitLength * 2 / 8;
2827
}

0 commit comments

Comments
 (0)