Example #1
0
        public HMAC(HashAlgorithm hash, byte[] key)
        {
            if (hash == null)
                throw new ArgumentNullException("hash");
            if (key == null)
                throw new ArgumentNullException("key");

            _HashAlgorithm = hash;
            _Key = key;
            RecomputePadding();
        }