diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-03-23 20:02:14 +1030 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-03-23 20:02:14 +1030 |
commit | 52a6a57be973336a28d3608856f80f425527f9c4 (patch) | |
tree | 53de62a67de991db7ec8a365b167c5e212c86c4f /crypto/src/util | |
parent | Support DH_anon cipher suites in TLS API (diff) | |
download | BouncyCastle.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')
-rw-r--r-- | crypto/src/util/io/BaseOutputStream.cs | 7 |
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); + } + } } |