You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
698 B

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 new 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);
}
}
}