diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-14 03:19:45 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-14 03:19:45 +0700 |
commit | 16bd368dd834a6be30b822898a149ca236bb6f70 (patch) | |
tree | 5f17f9bc7d1dc5d2bd554bf836ab69ed94467162 | |
parent | Refactor LWC tests (diff) | |
download | BouncyCastle.NET-ed25519-16bd368dd834a6be30b822898a149ca236bb6f70.tar.xz |
Fix exception type
-rw-r--r-- | crypto/src/crypto/modes/OCBBlockCipher.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/modes/OCBBlockCipher.cs b/crypto/src/crypto/modes/OCBBlockCipher.cs index 9ae60805e..ce86780c5 100644 --- a/crypto/src/crypto/modes/OCBBlockCipher.cs +++ b/crypto/src/crypto/modes/OCBBlockCipher.cs @@ -603,7 +603,7 @@ namespace Org.BouncyCastle.Crypto.Modes #if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER protected virtual void ProcessMainBlock(Span<byte> output) { - Check.DataLength(output, BLOCK_SIZE, "output buffer too short"); + Check.OutputLength(output, BLOCK_SIZE, "output buffer too short"); /* * OCB-ENCRYPT/OCB-DECRYPT: Process any whole blocks |