Click or drag to resize

SHA1Managed Class

Computes the Crestron.SimplSharp.Cryptography.SHA1 hash for the input data using the managed library.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CryptographyHashAlgorithm
    Crestron.SimplSharp.CryptographySHA1
      Crestron.SimplSharp.CryptographySHA1Managed

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public class SHA1Managed : SHA1

The SHA1Managed type exposes the following members.

Constructors
 NameDescription
Public methodSHA1Managed Initializes a new instance of the Crestron.SimplSharp.Cryptography.SHA1Managed class.
Top
Properties
 NameDescription
Public propertyCanReuseTransform Gets a value indicating whether the current transform can be reused.
(Inherited from HashAlgorithm)
Public propertyCanTransformMultipleBlocks When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.
(Inherited from HashAlgorithm)
Public propertyHash Gets the value of the computed hash code.
(Inherited from HashAlgorithm)
Public propertyHashSize Gets the size, in bits, of the computed hash code.
(Inherited from HashAlgorithm)
Public propertyInputBlockSize When overridden in a derived class, gets the input block size.
(Inherited from HashAlgorithm)
Public propertyOutputBlockSize When overridden in a derived class, gets the output block size.
(Inherited from HashAlgorithm)
Top
Methods
 NameDescription
Public methodClear Releases all resources used by the Crestron.SimplSharp.Cryptography.HashAlgorithm class.
(Inherited from HashAlgorithm)
Public methodComputeHash(Byte) Computes the hash value for the specified byte array.
(Inherited from HashAlgorithm)
Public methodComputeHash(Stream) Computes the hash value for the specified Crestron.SimplSharp.CrestronIO.Stream object.
(Inherited from HashAlgorithm)
Public methodComputeHash(Byte, Int32, Int32) Computes the hash value for the specified region of the specified byte array.
(Inherited from HashAlgorithm)
Public methodDispose
(Inherited from HashAlgorithm)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the Crestron.SimplSharp.Cryptography.HashAlgorithm and optionally releases the managed resources.
(Inherited from HashAlgorithm)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Finalizer
(Inherited from HashAlgorithm)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHashCore Routes data written to the object into the Crestron.SimplSharp.Cryptography.SHA1Managed hash algorithm for computing the hash.
(Overrides HashAlgorithmHashCore(Byte, Int32, Int32))
Protected methodHashFinal Returns the computed Crestron.SimplSharp.Cryptography.SHA1 hash value after all data has been written to the object.
(Overrides HashAlgorithmHashFinal)
Public methodInitialize Initializes an instance of Crestron.SimplSharp.Cryptography.SHA1Managed.
(Overrides HashAlgorithmInitialize)
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.
(Inherited from HashAlgorithm)
Public methodTransformFinalBlock Computes the hash value for the specified region of the specified byte array.
(Inherited from HashAlgorithm)
Top
Fields
 NameDescription
Protected fieldHashSizeValue Represents the size, in bits, of the computed hash code.
(Inherited from HashAlgorithm)
Protected fieldHashValue Represents the value of the computed hash code.
(Inherited from HashAlgorithm)
Protected fieldState Represents the state of the hash computation.
(Inherited from HashAlgorithm)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also