From 70e8f90b250ba65167943f67cb851495bc7b8add Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 23 May 2017 16:55:19 -0700 Subject: let's deprecate some hashes we should never have exposed (#3584) --- src/cryptography/hazmat/primitives/hashes.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/cryptography/hazmat/primitives/hashes.py b/src/cryptography/hazmat/primitives/hashes.py index 0714c118..e1172d9d 100644 --- a/src/cryptography/hazmat/primitives/hashes.py +++ b/src/cryptography/hazmat/primitives/hashes.py @@ -149,6 +149,14 @@ class RIPEMD160(object): block_size = 64 +RIPEMD160 = utils.deprecated( + RIPEMD160, + __name__, + "The RIPEMD160 hash was deprecated in version 1.9.", + utils.DeprecatedIn19 +) + + @utils.register_interface(HashAlgorithm) class Whirlpool(object): name = "whirlpool" @@ -156,6 +164,14 @@ class Whirlpool(object): block_size = 64 +Whirlpool = utils.deprecated( + Whirlpool, + __name__, + "The Whirlpool hash was deprecated in version 1.9.", + utils.DeprecatedIn19 +) + + @utils.register_interface(HashAlgorithm) class MD5(object): name = "md5" -- cgit v1.2.3