From 45c6b993945f01076e386cb59988b1836a329999 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 7 May 2024 22:44:37 +0700 Subject: Patch #1 for 2.3 - TLS: fix timing side-channel for RSA key exchange - fix method Write(ReadOnlySpan) in LimitedBuffer - ASN.1: Limit OID contents to 4096 bytes - EdDSA: fix verification infinite loop - EC: restrict m value in F2m curves --- crypto/src/util/io/LimitedBuffer.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/src/util/io') 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 buffer) { buffer.CopyTo(m_buf.AsSpan(m_count)); + m_count += buffer.Length; } #endif -- cgit 1.5.1