summary refs log tree commit diff
path: root/crypto/src/util/io/BaseOutputStream.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-03-23 20:02:14 +1030
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-03-23 20:02:14 +1030
commit52a6a57be973336a28d3608856f80f425527f9c4 (patch)
tree53de62a67de991db7ec8a365b167c5e212c86c4f /crypto/src/util/io/BaseOutputStream.cs
parentSupport DH_anon cipher suites in TLS API (diff)
downloadBouncyCastle.NET-ed25519-52a6a57be973336a28d3608856f80f425527f9c4.tar.xz
Avoid extra copy when processing TLS handshake messages
- move handshake hash updates (outbound) to a more sensible place
Diffstat (limited to 'crypto/src/util/io/BaseOutputStream.cs')
-rw-r--r--crypto/src/util/io/BaseOutputStream.cs7
1 files changed, 6 insertions, 1 deletions
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); + } + } }