using System; namespace Org.BouncyCastle.Tls.Crypto { /// Interface for message digest, or hash, services. public interface TlsHash { /// Update the hash with the passed in input. /// input array containing the data. /// offset into the input array the input starts at. /// the length of the input data. void Update(byte[] input, int inOff, int length); /// Return calculated hash for any input passed in. /// the hash value. byte[] CalculateHash(); /// Return a clone of this hash object representing its current state. /// a clone of the current hash. TlsHash CloneHash(); /// Reset the hash underlying this service. void Reset(); } }