blob: d7cd1999480395e1d7f273e30e1bbf05da98038e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
using System.IO;
using Org.BouncyCastle.Tls.Crypto;
using Org.BouncyCastle.Utilities.IO;
namespace Org.BouncyCastle.Tls
{
public sealed class HandshakeMessageInput
: MemoryStream
{
internal HandshakeMessageInput(byte[] buf, int offset, int length)
: base(buf, offset, length, false)
{
}
public void UpdateHash(TlsHash hash)
{
Streams.WriteBufTo(this, new TlsHashSink(hash));
}
}
}
|