SHA1Cng Class

 

Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA).

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)


[HostProtectionAttribute(SecurityAction::LinkDemand, MayLeakOnAbort = true)]
public ref class SHA1Cng sealed : SHA1

NameDescription
System_CAPS_pubmethodSHA1Cng()

Initializes a new instance of the SHA1Cng class.

NameDescription
System_CAPS_pubpropertyCanReuseTransform

Gets a value indicating whether the current transform can be reused.(Inherited from HashAlgorithm.)

System_CAPS_pubpropertyCanTransformMultipleBlocks

When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.(Inherited from HashAlgorithm.)

System_CAPS_pubpropertyHash

Gets the value of the computed hash code.(Inherited from HashAlgorithm.)

System_CAPS_pubpropertyHashSize

Gets the size, in bits, of the computed hash code.(Inherited from HashAlgorithm.)

System_CAPS_pubpropertyInputBlockSize

When overridden in a derived class, gets the input block size.(Inherited from HashAlgorithm.)

System_CAPS_pubpropertyOutputBlockSize

When overridden in a derived class, gets the output block size.(Inherited from HashAlgorithm.)

NameDescription
System_CAPS_pubmethodClear()

Releases all resources used by the HashAlgorithm class.(Inherited from HashAlgorithm.)

System_CAPS_pubmethodComputeHash(array<Byte>^)

Computes the hash value for the specified byte array.(Inherited from HashAlgorithm.)

System_CAPS_pubmethodComputeHash(array<Byte>^, Int32, Int32)

Computes the hash value for the specified region of the specified byte array.(Inherited from HashAlgorithm.)

System_CAPS_pubmethodComputeHash(Stream^)

Computes the hash value for the specified Stream object.(Inherited from HashAlgorithm.)

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the HashAlgorithm class.(Inherited from HashAlgorithm.)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitialize()

Initializes, or re-initializes, the instance of the hash algorithm. (Overrides HashAlgorithm::Initialize().)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTransformBlock(array<Byte>^, Int32, Int32, array<Byte>^, Int32)

Computes the hash value for the specified region of the input byte array and copies the specified region of the input byte array to the specified region of the output byte array.(Inherited from HashAlgorithm.)

System_CAPS_pubmethodTransformFinalBlock(array<Byte>^, Int32, Int32)

Computes the hash value for the specified region of the specified byte array.(Inherited from HashAlgorithm.)

NameDescription
System_CAPS_protfieldHashValue

Represents the value of the computed hash code.(Inherited from HashAlgorithm.)

This algorithm is for hashing only and does not provide any encryption or decryption. It uses the BCrypt (BestCrypt) layer CNG.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: