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"); 208if (!_hmac.TryGetHashAndReset(expectedAuth, out int bytesWritten) || bytesWritten < 10) 274Debug.Assert(_hmac is not null, "HMAC should have been initialized"); 296_hmac.AppendData(dataSpan); 301_hmac.AppendData(dataSpan); 338Debug.Assert(_hmac is not null, "HMAC should have been initialized"); 350if (!_hmac.TryGetHashAndReset(authCode, out int bytesWritten) || bytesWritten < MacSizeInBytes) 574_hmac?.Dispose(); 603_hmac?.Dispose();