Beispiel #1
0
        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);
        }