#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
using System;
using System.IO;
namespace Org.BouncyCastle.Crypto
{
///
/// Base interface for cryptographic operations such as Hashes, MACs, and Signatures which reduce a stream of data
/// to a single value.
///
public interface IStreamCalculator
{
/// Return a "sink" stream which only exists to update the implementing object.
/// A stream to write to in order to update the implementing object.
Stream Stream { get; }
///
/// Return the result of processing the stream. This value is only available once the stream
/// has been closed.
///
/// The result of processing the stream.
Object GetResult();
}
}
#endif