Lines Matching refs:sha512_t
39 import pkg.sha512_t as sha512_t
45 """A class tests the sha512_t module."""
57 a = sha512_t.SHA512_t()
63 a = sha512_t.SHA512_t(b"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu")
69 output = len(sha512_t.SHA512_t(b"0.861687995815").hexdigest())
71 output = len(sha512_t.SHA512_t(b"0.861687995815", 224).hexdigest())
75 a = sha512_t.SHA512_t()
82 output = len(sha512_t.SHA512_t(b"0.861687995815").digest())
84 output = len(sha512_t.SHA512_t(b"0.861687995815", 224).digest())
88 a = sha512_t.SHA512_t(b"a")
94 a = sha512_t.SHA512_t(b"a")
104 a = sha512_t.SHA512_t()
108 a = sha512_t.SHA512_t(t=224)
114 a = sha512_t.SHA512_t(b"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", t=224)
120 a = sha512_t.SHA512_t(b"abc", 224)
126 a = sha512_t.SHA512_t(message=b"abc", t=224)
132 a = sha512_t.SHA512_t()
138 self.assertRaises(TypeError, sha512_t.SHA512_t, 8)
139 self.assertRaises(ValueError, sha512_t.SHA512_t, t=160)
140 self.assertRaises(TypeError, sha512_t.SHA512_t.update, 8)
144 a = sha512_t.SHA512_t(u"abc")
149 a = sha512_t.SHA512_t("α♭¢")
155 self.assertRaises(TypeError, sha512_t.SHA512_t, "str")