diff options
Diffstat (limited to 'crypto/src/crypto/modes/GCMBlockCipher.cs')
-rw-r--r-- | crypto/src/crypto/modes/GCMBlockCipher.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/src/crypto/modes/GCMBlockCipher.cs b/crypto/src/crypto/modes/GCMBlockCipher.cs index c19f5f904..2255b6276 100644 --- a/crypto/src/crypto/modes/GCMBlockCipher.cs +++ b/crypto/src/crypto/modes/GCMBlockCipher.cs @@ -15,8 +15,7 @@ using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Crypto.Modes { /// <summary> - /// Implements the Galois/Counter mode (GCM) detailed in - /// NIST Special Publication 800-38D. + /// Implements the Galois/Counter mode (GCM) detailed in NIST Special Publication 800-38D. /// </summary> public sealed class GcmBlockCipher : IAeadBlockCipher @@ -25,7 +24,7 @@ namespace Org.BouncyCastle.Crypto.Modes { #if NETCOREAPP3_0_OR_GREATER // TODO Prefer more tightly coupled test - if (System.Runtime.Intrinsics.X86.Pclmulqdq.IsSupported) + if (Pclmulqdq.IsSupported) { return new BasicGcmMultiplier(); } @@ -106,7 +105,7 @@ namespace Org.BouncyCastle.Crypto.Modes this.initialised = true; KeyParameter keyParam; - byte[] newNonce = null; + byte[] newNonce; if (parameters is AeadParameters) { |