public void Md5_bit32(string data, string hex) { var function = MdFactory.Create(MdTypes.Md5Bit32); var hashVal = function.ComputeHash(data); hashVal.GetHexString(true).ShouldBe(hex); }
public void Md6Bit255L64Test(string data, string hex) { var function = MdFactory.Create(o => { o.HashSizeInBits = 255; o.ModeControl = 64; }); var hashVal = function.ComputeHash(data); hashVal.GetHexString(true).ShouldBe(hex); }