summary refs log tree commit diff
path: root/crypto/src/crypto/BufferedStreamCipher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/BufferedStreamCipher.cs')
-rw-r--r--crypto/src/crypto/BufferedStreamCipher.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/crypto/BufferedStreamCipher.cs b/crypto/src/crypto/BufferedStreamCipher.cs
index 8ee41c1e5..6ae51f47d 100644
--- a/crypto/src/crypto/BufferedStreamCipher.cs
+++ b/crypto/src/crypto/BufferedStreamCipher.cs
@@ -11,10 +11,7 @@ namespace Org.BouncyCastle.Crypto
 
 		public BufferedStreamCipher(IStreamCipher cipher)
 		{
-			if (cipher == null)
-				throw new ArgumentNullException("cipher");
-
-			this.m_cipher = cipher;
+			m_cipher = cipher ?? throw new ArgumentNullException(nameof(cipher));
 		}
 
 		public override string AlgorithmName