summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-14 03:19:45 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-14 03:19:45 +0700
commit16bd368dd834a6be30b822898a149ca236bb6f70 (patch)
tree5f17f9bc7d1dc5d2bd554bf836ab69ed94467162
parentRefactor LWC tests (diff)
downloadBouncyCastle.NET-ed25519-16bd368dd834a6be30b822898a149ca236bb6f70.tar.xz
Fix exception type
-rw-r--r--crypto/src/crypto/modes/OCBBlockCipher.cs2
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