Click or drag to resize

HashAlgorithm Class

Represents the base class from which all implementations of cryptographic hash algorithms must derive.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CryptographyHashAlgorithm
    Crestron.SimplSharp.CryptographyMD5
    Crestron.SimplSharp.CryptographySHA1

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public abstract class HashAlgorithm : ICryptoTransform, 
	IDisposable

The HashAlgorithm type exposes the following members.

Constructors
 NameDescription
Protected methodHashAlgorithm Initializes a new instance of the Crestron.SimplSharp.Cryptography.HashAlgorithm class.
Top
Properties
 NameDescription
Public propertyCanReuseTransform Gets a value indicating whether the current transform can be reused.
Public propertyCanTransformMultipleBlocks When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.
Public propertyHash Gets the value of the computed hash code.
Public propertyHashSize Gets the size, in bits, of the computed hash code.
Public propertyInputBlockSize When overridden in a derived class, gets the input block size.
Public propertyOutputBlockSize When overridden in a derived class, gets the output block size.
Top
Methods
 NameDescription
Public methodClear Releases all resources used by the Crestron.SimplSharp.Cryptography.HashAlgorithm class.
Public methodComputeHash(Byte) Computes the hash value for the specified byte array.
Public methodComputeHash(Stream) Computes the hash value for the specified Crestron.SimplSharp.CrestronIO.Stream object.
Public methodComputeHash(Byte, Int32, Int32) Computes the hash value for the specified region of the specified byte array.
Public methodStatic memberCreate Creates an instance of the default implementation of the Crestron.SimplSharp.Cryptography.HashAlgorithm class.
Public methodStatic memberCreate(String) Creates an instance of the specified implementation of the Crestron.SimplSharp.Cryptography.HashAlgorithm class.
Public methodDisposeReleases all resources used by the HashAlgorithm
Protected methodDispose(Boolean) Releases the unmanaged resources used by the Crestron.SimplSharp.Cryptography.HashAlgorithm and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Finalizer
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHashCore When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash.
Protected methodHashFinal When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.
Public methodInitialize Initializes an implementation of the Crestron.SimplSharp.Cryptography.HashAlgorithm class.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTransformBlock Computes the hash value for the specified region of the input byte array and copies the resulting hash value to the specified region of the output byte array.
Public methodTransformFinalBlock Computes the hash value for the specified region of the specified byte array.
Top
Fields
 NameDescription
Protected fieldHashSizeValue Represents the size, in bits, of the computed hash code.
Protected fieldHashValue Represents the value of the computed hash code.
Protected fieldState Represents the state of the hash computation.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also