diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-10-24 10:12:56 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-10-24 10:12:56 +0700 |
commit | 2a70b6dc400133a21df391a1cd4b57630f533cf2 (patch) | |
tree | 36911c0c577e11948f2aa2155f625931a7cd6397 /crypto/src | |
parent | Use Edwards internals for X25519/X448 public key calculations (diff) | |
download | BouncyCastle.NET-ed25519-2a70b6dc400133a21df391a1cd4b57630f533cf2.tar.xz |
Reverted short nonce on decryption change
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/modes/CcmBlockCipher.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/modes/CcmBlockCipher.cs b/crypto/src/crypto/modes/CcmBlockCipher.cs index 0a28a288f..fa97ec840 100644 --- a/crypto/src/crypto/modes/CcmBlockCipher.cs +++ b/crypto/src/crypto/modes/CcmBlockCipher.cs @@ -91,7 +91,7 @@ namespace Org.BouncyCastle.Crypto.Modes keyParam = cipherParameters; } - if (nonce == null || (forEncryption && (nonce.Length < 7 || nonce.Length > 13))) + if (nonce == null || nonce.Length < 7 || nonce.Length > 13) throw new ArgumentException("nonce must have length from 7 to 13 octets"); Reset(); |