1 write to _hmac
System.IO.Compression (1)
System\IO\Compression\WinZipAesStream.cs (1)
195_hmac = IncrementalHash.CreateHMAC(HashAlgorithmName.SHA1, keyMaterial.HmacKey);
9 references to _hmac
System.IO.Compression (9)
System\IO\Compression\WinZipAesStream.cs (9)
204Debug.Assert(_hmac is not null, "HMAC should have been initialized"); 213if (!_hmac.TryGetHashAndReset(expectedAuth, out int bytesWritten) || bytesWritten < 10) 279Debug.Assert(_hmac is not null, "HMAC should have been initialized"); 301_hmac.AppendData(dataSpan); 306_hmac.AppendData(dataSpan); 343Debug.Assert(_hmac is not null, "HMAC should have been initialized"); 355if (!_hmac.TryGetHashAndReset(authCode, out int bytesWritten) || bytesWritten < MacSizeInBytes) 579_hmac?.Dispose(); 608_hmac?.Dispose();