示例#1
0
 CryptoStream GetCryptoStream2(
     InheritedHasher hasher) => new CryptoStream(
     new MemoryStream(new byte[10], true),
     HashAlgorithm.Create(Algorithms.KeyedHash.HmacSha256),
     CryptoStreamMode.Write);
示例#2
0
 CryptoStream GetCryptoStream(
     InheritedHasher hasher) => new CryptoStream(
     TestUtilities.CreateNonWritableStream(),
     HashAlgorithm.Create(Algorithms.KeyedHash.HmacSha256),
     CryptoStreamMode.Read);