diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-05-23 16:55:19 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2017-05-23 16:55:19 -0700 |
commit | 70e8f90b250ba65167943f67cb851495bc7b8add (patch) | |
tree | bd5beb5b58f938049ff5478a17459d6ea0b89e62 /src | |
parent | 51ef0eb1020327ddf626ee5c8504b0dfe218b2ba (diff) | |
download | cryptography-70e8f90b250ba65167943f67cb851495bc7b8add.tar.gz cryptography-70e8f90b250ba65167943f67cb851495bc7b8add.tar.bz2 cryptography-70e8f90b250ba65167943f67cb851495bc7b8add.zip |
let's deprecate some hashes we should never have exposed (#3584)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/primitives/hashes.py | 16 |
1 files changed, 16 insertions, 0 deletions
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" |