summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorharrison314 <harrison314@azet.sk>2024-03-02 16:33:48 +0100
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-03-04 18:24:37 +0700
commitcfca88ca8b596059cd930159fed4040f487d0de7 (patch)
treed01484b6f4913845163974bdc1781b98944df030 /crypto
parentFactor out TlsRsaKeyExchange to address timing issue (diff)
downloadBouncyCastle.NET-ed25519-cfca88ca8b596059cd930159fed4040f487d0de7.tar.xz
FIx method Write(ReadOnlySpan<byte>) in LimitedBuffer
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/util/io/LimitedBuffer.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/src/util/io/LimitedBuffer.cs b/crypto/src/util/io/LimitedBuffer.cs
index 07c9969ad..c99c49c25 100644
--- a/crypto/src/util/io/LimitedBuffer.cs
+++ b/crypto/src/util/io/LimitedBuffer.cs
@@ -47,6 +47,7 @@ namespace Org.BouncyCastle.Utilities.IO
         public override void Write(ReadOnlySpan<byte> buffer)
         {
             buffer.CopyTo(m_buf.AsSpan(m_count));
+            m_count += buffer.Length;
         }
 #endif