We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d6519 commit 3a8d907Copy full SHA for 3a8d907
crypto/src/crypto/macs/KMac.cs
@@ -1,5 +1,4 @@
1
using System;
2
-using System.Text;
3
4
using Org.BouncyCastle.Crypto.Digests;
5
using Org.BouncyCastle.Crypto.Parameters;
@@ -22,7 +21,7 @@ public class KMac
22
21
23
public KMac(int bitLength, byte[] S)
24
{
25
- this.cshake = new CShakeDigest(bitLength, Encoding.ASCII.GetBytes("KMAC"), S);
+ this.cshake = new CShakeDigest(bitLength, Strings.ToAsciiByteArray("KMAC"), S);
26
this.bitLength = bitLength;
27
this.outputLength = bitLength * 2 / 8;
28
}
0 commit comments