void ComputeHmac(byte[] input, byte[] output) { var hash = new byte[_hmacAlgorithm.GetMacSize()]; _hmacAlgorithm.BlockUpdate(input, 0, input.Length); _hmacAlgorithm.DoFinal(hash, 0); Array.Copy(hash, output, output.Length); }
void ComputeHmac(byte[] input, byte[] output) { var hash = new byte[_hmacAlgorithm.GetMacSize()]; _hmacAlgorithm.BlockUpdate(input, 0, input.Length); _hmacAlgorithm.DoFinal(hash, 0); Array.Copy(hash, output, output.Length); }