blob: 7dd525f88c1432cf499f0ef1146350a8e4172618 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
using System.IO;
using Org.BouncyCastle.Tls.Crypto;
using Org.BouncyCastle.Utilities.IO;
namespace Org.BouncyCastle.Tls
{
internal class DigestInputBuffer
: MemoryStream
{
internal void UpdateDigest(TlsHash hash)
{
Streams.WriteBufTo(this, new TlsHashSink(hash));
}
/// <exception cref="IOException"/>
internal void CopyTo(Stream output)
{
// TODO[tls-port]
// NOTE: Copy data since the output here may be under control of external code.
//Streams.PipeAll(new MemoryStream(buf, 0, count), output);
Streams.WriteBufTo(this, output);
}
}
}
|