Beispiel #1
0
 public void Invariants()
 {
     algo = new HMACSHA1();
     Assert.IsTrue(algo.CanReuseTransform, "HMACSHA1.CanReuseTransform");
     Assert.IsTrue(algo.CanTransformMultipleBlocks, "HMACSHA1.CanTransformMultipleBlocks");
     Assert.AreEqual("SHA1", algo.HashName, "HMACSHA1.HashName");
     Assert.AreEqual(160, algo.HashSize, "HMACSHA1.HashSize");
     Assert.AreEqual(1, algo.InputBlockSize, "HMACSHA1.InputBlockSize");
     Assert.AreEqual(1, algo.OutputBlockSize, "HMACSHA1.OutputBlockSize");
     Assert.AreEqual("System.Security.Cryptography.HMACSHA1", algo.ToString(), "HMACSHA1.ToString()");
 }