Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ctx.hash(rhash.SHA224))
self.assertEqual(
'ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb',
ctx.hash(rhash.SHA256))
self.assertEqual(
'54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31',
ctx.hash(rhash.SHA384))
self.assertEqual(
'1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05abc54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75',
ctx.hash(rhash.SHA512))
self.assertEqual(
'943aa9225a2cf154ec2e4dd81237720ba538ca8df2fd83c0b893c5d265f353a0',
ctx.hash(rhash.EDONR256))
self.assertEqual(
'b59ec44f7beef8a04ceed38a973d77c65e22e9458d5f67b497948da34986c093b5efc5483fbee55f2f740fcad31f18d80db44bb6b8843e7fd599188e7c07233b',
ctx.hash(rhash.EDONR512))
self.assertEqual(
'9e86ff69557ca95f405f081269685b38e3a819b309ee942f482b6a8b',
ctx.hash(rhash.SHA3_224))
self.assertEqual(
'80084bf2fba02475726feb2cab2d8215eab14bc6bdd8bfb2c8151257032ecd8b',
ctx.hash(rhash.SHA3_256))
self.assertEqual(
'1815f774f320491b48569efec794d249eeb59aae46d22bf77dafe25c5edc28d7ea44f93ee1234aa88f61c91912a4ccd9',
ctx.hash(rhash.SHA3_384))
self.assertEqual(
'697f2d856172cb8309d6b8b97dac4de344b549d4dee61edfb4962d8698b7fa803f4f93ff24393586e28b5b957ac3d1d369420ce53332712f997bd336d09ab02a',
ctx.hash(rhash.SHA3_512))
# test reset
self.assertEqual(
'd41d8cd98f00b204e9800998ecf8427e',
ctx.reset().finish().hash(rhash.MD5)) # MD5( '' )