Esempio n. 1
0
 public void Invariants()
 {
     algo = new HMACSHA384();
     Assert.IsTrue(algo.CanReuseTransform, "HMACSHA384.CanReuseTransform");
     Assert.IsTrue(algo.CanTransformMultipleBlocks, "HMACSHA384.CanTransformMultipleBlocks");
     Assert.AreEqual("SHA384", algo.HashName, "HMACSHA384.HashName");
     Assert.AreEqual(384, algo.HashSize, "HMACSHA384.HashSize");
     Assert.AreEqual(1, algo.InputBlockSize, "HMACSHA384.InputBlockSize");
     Assert.AreEqual(1, algo.OutputBlockSize, "HMACSHA384.OutputBlockSize");
     Assert.AreEqual("System.Security.Cryptography.HMACSHA384", algo.ToString(), "HMACSHA384.ToString()");
 }