SHA256Cng Classe
Definição
Fornece uma implementação de CNG (Cryptography Next Generation) do SHA (Secure Hash Algorithm) para valores de hash de 256 bits.Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA) for 256-bit hash values.
public ref class SHA256Cng sealed : System::Security::Cryptography::SHA256
public sealed class SHA256Cng : System.Security.Cryptography.SHA256
type SHA256Cng = class
inherit SHA256
Public NotInheritable Class SHA256Cng
Inherits SHA256
- Herança
Comentários
Esse algoritmo é apenas para hash e não fornece criptografia ou descriptografia.This algorithm is for hashing only and does not provide any encryption or decryption. Ele usa a CNG (BestCrypt) da camada BCrypt.It uses the BCrypt (BestCrypt) layer CNG.
Construtores
| SHA256Cng() |
Inicializa uma nova instância da classe SHA256Cng.Initializes a new instance of the SHA256Cng class. |
Campos
| HashSizeValue |
Representa o tamanho, em bits, do código hash calculado.Represents the size, in bits, of the computed hash code. (Herdado de HashAlgorithm) |
| HashValue |
Representa o valor do código hash computado.Represents the value of the computed hash code. (Herdado de HashAlgorithm) |
| State |
Representa o estado do cálculo de hash.Represents the state of the hash computation. (Herdado de HashAlgorithm) |
Propriedades
| CanReuseTransform |
Obtém um valor que indica se a transformação atual pode ser reutilizada.Gets a value indicating whether the current transform can be reused. (Herdado de HashAlgorithm) |
| CanTransformMultipleBlocks |
Quando substituído em uma classe derivada, obtém um valor que indica se vários blocos podem ser transformados.When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed. (Herdado de HashAlgorithm) |
| Hash |
Obtém o valor do código hash computado.Gets the value of the computed hash code. (Herdado de HashAlgorithm) |
| HashSize |
Obtém o tamanho, em bits, do código hash computado.Gets the size, in bits, of the computed hash code. (Herdado de HashAlgorithm) |
| InputBlockSize |
Quando substituído em uma classe derivada, obtém o tamanho do bloco de entrada.When overridden in a derived class, gets the input block size. (Herdado de HashAlgorithm) |
| OutputBlockSize |
Quando substituído em uma classe derivada, obtém o tamanho do bloco de saída.When overridden in a derived class, gets the output block size. (Herdado de HashAlgorithm) |
Métodos
| Clear() |
Libera todos os recursos usados pela classe HashAlgorithm.Releases all resources used by the HashAlgorithm class. (Herdado de HashAlgorithm) |
| ComputeHash(Byte[]) |
Calcula o valor do hash da matriz de bytes especificada.Computes the hash value for the specified byte array. (Herdado de HashAlgorithm) |
| ComputeHash(Byte[], Int32, Int32) |
Calcula o valor de hash para a região especificada da matriz de bytes especificada.Computes the hash value for the specified region of the specified byte array. (Herdado de HashAlgorithm) |
| ComputeHash(Stream) |
Calcula o valor do hash do objeto Stream especificado.Computes the hash value for the specified Stream object. (Herdado de HashAlgorithm) |
| ComputeHashAsync(Stream, CancellationToken) |
Calcula assincronamente o valor do hash do objeto Stream especificado.Asynchronously computes the hash value for the specified Stream object. (Herdado de HashAlgorithm) |
| Dispose() |
Libera todos os recursos usados pela instância atual da classe HashAlgorithm.Releases all resources used by the current instance of the HashAlgorithm class. (Herdado de HashAlgorithm) |
| Dispose(Boolean) |
Libera os recursos não gerenciados usados pelo HashAlgorithm e opcionalmente libera os recursos gerenciados.Releases the unmanaged resources used by the HashAlgorithm and optionally releases the managed resources. (Herdado de HashAlgorithm) |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| HashCore(Byte[], Int32, Int32) |
Quando substituído em uma classe derivada, roteia os dados gravados no objeto para o algoritmo de hash para computar o hash.When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash. (Herdado de HashAlgorithm) |
| HashCore(ReadOnlySpan<Byte>) |
Roteia os dados gravados no objeto para o algoritmo de hash para cálculo do hash.Routes data written to the object into the hash algorithm for computing the hash. (Herdado de HashAlgorithm) |
| HashFinal() |
Quando substituído em uma classe derivada, finaliza o cálculo de hash depois que os últimos dados são processados pelo algoritmo de hash de criptografia.When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic hash algorithm. (Herdado de HashAlgorithm) |
| Initialize() |
Inicializa ou reinicializa a instância do algoritmo de hash.Initializes, or re-initializes, the instance of the hash algorithm. |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| TransformBlock(Byte[], Int32, Int32, Byte[], Int32) |
Calcula o valor de hash para a região especificada da matriz de bytes de entrada e copia a região especificada da matriz de bytes de entrada para a região especificada da matriz de bytes de saída.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. (Herdado de HashAlgorithm) |
| TransformFinalBlock(Byte[], Int32, Int32) |
Calcula o valor de hash para a região especificada da matriz de bytes especificada.Computes the hash value for the specified region of the specified byte array. (Herdado de HashAlgorithm) |
| TryComputeHash(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
Tenta calcular o valor de hash para a matriz de bytes especificada.Attempts to compute the hash value for the specified byte array. (Herdado de HashAlgorithm) |
| TryHashFinal(Span<Byte>, Int32) |
Tenta finalizar o cálculo de hash depois que os últimos dados são processados pelo algoritmo de hash.Attempts to finalize the hash computation after the last data is processed by the hash algorithm. (Herdado de HashAlgorithm) |
Implantações explícitas de interface
| IDisposable.Dispose() |
Libera os recursos não gerenciados usados pelo HashAlgorithm e opcionalmente libera os recursos gerenciados.Releases the unmanaged resources used by the HashAlgorithm and optionally releases the managed resources. (Herdado de HashAlgorithm) |