diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2019-01-23 22:00:14 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-01-23 21:00:14 -0600 |
commit | 5c07d7a87c54a8532b49ba41febe8d526e5734d8 (patch) | |
tree | f7b8e6ac665e960d141bc6e836eac47a6bcb1018 /src/cryptography/hazmat/primitives/asymmetric | |
parent | 908121176f037c618b1f774ab969ad7f67ea3020 (diff) | |
download | cryptography-5c07d7a87c54a8532b49ba41febe8d526e5734d8.tar.gz cryptography-5c07d7a87c54a8532b49ba41febe8d526e5734d8.tar.bz2 cryptography-5c07d7a87c54a8532b49ba41febe8d526e5734d8.zip |
Fixes #4734 -- Deal with deprecated things (#4736)
* Fixes #4734 -- Deal with deprecated things
- Make year based aliases of PersistentlyDeprecated so we can easily assess age
- Removed encode/decode rfc6979 signature
- Removed Certificate.serial
* Unused import
Diffstat (limited to 'src/cryptography/hazmat/primitives/asymmetric')
-rw-r--r-- | src/cryptography/hazmat/primitives/asymmetric/utils.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/utils.py b/src/cryptography/hazmat/primitives/asymmetric/utils.py index ef1e7eb9..274c1f41 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/utils.py +++ b/src/cryptography/hazmat/primitives/asymmetric/utils.py @@ -4,8 +4,6 @@ from __future__ import absolute_import, division, print_function -import warnings - from asn1crypto.algos import DSASignature import six @@ -14,31 +12,11 @@ from cryptography import utils from cryptography.hazmat.primitives import hashes -def decode_rfc6979_signature(signature): - warnings.warn( - "decode_rfc6979_signature is deprecated and will " - "be removed in a future version, use decode_dss_signature instead.", - utils.PersistentlyDeprecated, - stacklevel=2 - ) - return decode_dss_signature(signature) - - def decode_dss_signature(signature): data = DSASignature.load(signature, strict=True).native return data['r'], data['s'] -def encode_rfc6979_signature(r, s): - warnings.warn( - "encode_rfc6979_signature is deprecated and will " - "be removed in a future version, use encode_dss_signature instead.", - utils.PersistentlyDeprecated, - stacklevel=2 - ) - return encode_dss_signature(r, s) - - def encode_dss_signature(r, s): if ( not isinstance(r, six.integer_types) or |