Name
HashAlgorithm
Synopsis
public abstract class HashAlgorithm : ICryptoTransform, IDisposable { // Protected Constructors protected HashAlgorithm( ); // Protected Instance Fields protected int HashSizeValue; protected byte[ ] HashValue; protected int State; // Public Instance Properties public virtual bool CanReuseTransform{get; // implements ICryptoTransform public virtual bool CanTransformMultipleBlocks{get; // implements ICryptoTransform public virtual byte[ ] Hash{get; } public virtual int HashSize{get; } public virtual int InputBlockSize{get; // implements ICryptoTransform public virtual int OutputBlockSize{get; // implements ICryptoTransform // Public Static Methods public static HashAlgorithm Create( ); public static HashAlgorithm Create(stringhashName
); // Public Instance Methods public void Clear( ); public byte[ ] ComputeHash(byte[ ]buffer
); public byte[ ] ComputeHash(byte[ ]buffer
, intoffset
, intcount
); public byte[ ] ComputeHash(System.IO.StreaminputStream
); public abstract void Initialize( ); public int TransformBlock(byte[ ]inputBuffer
, intinputOffset
, intinputCount
, byte[ ]outputBuffer
, intoutputOffset
); // implements ICryptoTransform public byte[ ] TransformFinalBlock(byte[ ]inputBuffer
, intinputOffset
, intinputCount
); // implements ICryptoTransform // Protected Instance Methods protected virtual void Dispose(booldisposing
); protected abstract void HashCore(byte[ ]array
, intibStart
, intcbSize
); protected abstract byte[ ] HashFinal( ); }
A hash ...
Get Programming .NET Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.