From 52a6a57be973336a28d3608856f80f425527f9c4 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 23 Mar 2017 20:02:14 +1030 Subject: Avoid extra copy when processing TLS handshake messages - move handshake hash updates (outbound) to a more sensible place --- crypto/src/util/io/BaseOutputStream.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crypto/src/util/io/BaseOutputStream.cs') diff --git a/crypto/src/util/io/BaseOutputStream.cs b/crypto/src/util/io/BaseOutputStream.cs index a0608d111..0dbe821de 100644 --- a/crypto/src/util/io/BaseOutputStream.cs +++ b/crypto/src/util/io/BaseOutputStream.cs @@ -60,5 +60,10 @@ namespace Org.BouncyCastle.Utilities.IO { Write(buffer, 0, buffer.Length); } - } + + public override void WriteByte(byte b) + { + Write(new byte[]{ b }, 0, 1); + } + } } -- cgit 1.4.1