43 [MemberNotNull(
"_hMacProvider")]
58 hMacProvider?.
Dispose(disposing:
true);
void ChangeKey(byte[] key)
readonly string _hashAlgorithmId
int FinalizeHashAndReset(Span< byte > destination)
volatile HashProvider _lazyHashProvider
void Dispose(bool disposing)
int GetCurrentHash(Span< byte > destination)
HMACCommon(string hashAlgorithmId, ReadOnlySpan< byte > key, int blockSize)
byte[] FinalizeHashAndReset()
bool TryFinalizeHashAndReset(Span< byte > destination, out int bytesWritten)
void AppendHashData(byte[] data, int offset, int count)
HMACCommon(string hashAlgorithmId, byte[] key, int blockSize)
byte[] ChangeKeyImpl(ReadOnlySpan< byte > key)
void AppendHashData(ReadOnlySpan< byte > source)
HashProvider _hMacProvider
static HashProvider CreateMacProvider(string hashAlgorithmId, ReadOnlySpan< byte > key)
static HashProvider CreateHashProvider(string hashAlgorithmId)
void AppendHashData(byte[] data, int offset, int count)
bool TryFinalizeHashAndReset(Span< byte > destination, out int bytesWritten)
int FinalizeHashAndReset(Span< byte > destination)
int GetCurrentHash(Span< byte > destination)