diff options
author | harrison314 <harrison314@azet.sk> | 2024-03-02 16:33:48 +0100 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-03-04 18:24:37 +0700 |
commit | cfca88ca8b596059cd930159fed4040f487d0de7 (patch) | |
tree | d01484b6f4913845163974bdc1781b98944df030 /crypto/src/util | |
parent | Factor out TlsRsaKeyExchange to address timing issue (diff) | |
download | BouncyCastle.NET-ed25519-cfca88ca8b596059cd930159fed4040f487d0de7.tar.xz |
FIx method Write(ReadOnlySpan<byte>) in LimitedBuffer
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/io/LimitedBuffer.cs | 1 |
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 |