diff options
Diffstat (limited to 'crypto/src/asn1/nist/KMACwithSHAKE128_params.cs')
-rw-r--r-- | crypto/src/asn1/nist/KMACwithSHAKE128_params.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/nist/KMACwithSHAKE128_params.cs b/crypto/src/asn1/nist/KMACwithSHAKE128_params.cs index df2bf0173..ca94b5bfe 100644 --- a/crypto/src/asn1/nist/KMACwithSHAKE128_params.cs +++ b/crypto/src/asn1/nist/KMACwithSHAKE128_params.cs @@ -56,9 +56,9 @@ public class KMacWithShake128Params : Asn1Encodable } else if (seq.Count == 1) { - if (seq[0] is DerInteger) + if (seq[0] is DerInteger derInteger) { - this.outputLength = DerInteger.GetInstance(seq[0]).IntValueExact; + this.outputLength = derInteger.IntValueExact; this.customizationString = EMPTY_STRING; } else |