HashingAlgorithm Class
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9448)
Represents a hash algorithm.
Syntax
public class HashingAlgorithm : IDisposable
Implements
Inherited Members
Constructors
| Name | Description |
|---|---|
| HashingAlgorithm(HashingAlgorithmId) | Creates an instance of HashingAlgorithmId for the specified algorithm. |
Properties
| Name | Description |
|---|---|
| Algorithm | Gets algorithm ID. |
| HashSize | Gets the size of the computed hash code (in bits). |
| KeyMode | Gets or sets the algorithm's key mode. |
Methods
| Name | Description |
|---|---|
| ComputeHash(HashingAlgorithmId, Byte[]) | Computes the hash value for the specified data using the specified algorithm. |
| ComputeHash(HashingAlgorithmId, Byte[], Int32, Int32) | Computes the hash value for the specified data using the specified algorithm. |
| ComputeHash(Byte[]) | Computes the hash value for the specified data. |
| ComputeHash(Byte[], Int32, Int32) | Computes the hash value for the specified data. |
| CreateTransform() | Creates a hash transform object for this algorithm based on the currently set parameters. |
| Dispose() | Disposes the object. |
| GetKey() | Gets the current key. |
| IsSupported(HashingAlgorithmId) | Gets a value indicating whether the specified algorithm is supported. |
| SetKey(Byte[]) | Sets the current key to the specified value. |
| ToHashAlgorithm() | Creates a hash transform object for this algorithm based on the currently set parameters. |