June 2003
Intermediate to advanced
714 pages
22h 8m
English
HashAlgorithm
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 ...