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
|