53 if (count < 0 || count > data.Length)
197 if (
string.IsNullOrEmpty(hashAlgorithm.
Name))
204 [UnsupportedOSPlatform(
"browser")]
214 [UnsupportedOSPlatform(
"browser")]
217 if (
string.IsNullOrEmpty(hashAlgorithm.
Name))
void Dispose(bool disposing)
int GetCurrentHash(Span< byte > destination)
byte[] FinalizeHashAndReset()
void AppendHashData(byte[] data, int offset, int count)
static HashProvider CreateHashProvider(string hashAlgorithmId)
void AppendHashData(byte[] data, int offset, int count)
int FinalizeHashAndReset(Span< byte > destination)
int GetCurrentHash(Span< byte > destination)
static string Argument_DestinationTooShort
static string Argument_InvalidOffLen
static string ArgumentOutOfRange_NeedNonNegNum
static string Cryptography_HashAlgorithmNameNullOrEmpty
HashAlgorithmName AlgorithmName
IncrementalHash(HashAlgorithmName name, HashProvider hash)
readonly HashAlgorithmName _algorithmName
static IncrementalHash CreateHash(HashAlgorithmName hashAlgorithm)
void AppendData(ReadOnlySpan< byte > data)
static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, ReadOnlySpan< byte > key)
void AppendData(byte[] data, int offset, int count)
int GetCurrentHashCore(Span< byte > destination)
static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, byte[] key)
void AppendData(byte[] data)
bool TryGetHashAndReset(Span< byte > destination, out int bytesWritten)
IncrementalHash(HashAlgorithmName name, HMACCommon hmac)
int GetHashAndResetCore(Span< byte > destination)
int GetCurrentHash(Span< byte > destination)
bool TryGetCurrentHash(Span< byte > destination, out int bytesWritten)
int GetHashAndReset(Span< byte > destination)