Lines Matching defs:check
157 def check(self, name, data, digest):
188 self.check(algorithm_name, u'spam', expected)
201 self.check('md5', '', 'd41d8cd98f00b204e9800998ecf8427e')
204 self.check('md5', 'abc', '900150983cd24fb0d6963f7d28e17f72')
207 self.check('md5', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
214 self.check('md5', 'A'*size, 'c9af2dff37468ce5dfee8f2cfc0a9c6d')
231 self.check('md5', 'A'*size, '28138d306ff1b8281f1a9067e1a1a2b3')
240 self.check('sha1', "",
244 self.check('sha1', "abc",
248 self.check('sha1', "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
252 self.check('sha1', "a" * 1000000,
259 self.check('sha1', 'A'*size,
278 self.check('sha224', "",
282 self.check('sha224', "abc",
286 self.check('sha224',
291 self.check('sha224', "a" * 1000000,
296 self.check('sha256', "",
300 self.check('sha256', "abc",
304 self.check('sha256',
309 self.check('sha256', "a" * 1000000,
314 self.check('sha384', "",
319 self.check('sha384', "abc",
324 self.check('sha384',
331 self.check('sha384', "a" * 1000000,
337 self.check('sha512', "",
342 self.check('sha512', "abc",
347 self.check('sha512',
354 self.check('sha512', "a" * 1000000,