public HmacHha256Benchmark() { var key = ByteArrayHelper.CreateUtf8Bytes(KeyLength); _hmac = new HMACSHA256(key); _hash = new byte[_hmac.HashSize / 8]; _incrementalHash = IncrementalHash.CreateHMAC(HashAlgorithmName.SHA256, key); }
public void Setup() { _source1 = ByteArrayHelper.CreateUtf8Bytes(Source1Length); _source2 = ByteArrayHelper.CreateUtf8Bytes(SourceLength - Source1Length); }