File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66
77try :
88 from cryptography .hazmat .primitives .asymmetric .utils import (
9- decode_rfc6979_signature , encode_rfc6979_signature
9+ decode_dss_signature , encode_dss_signature
1010 )
1111except ImportError :
1212 pass
@@ -95,7 +95,7 @@ def der_to_raw_signature(der_sig, curve):
9595 num_bits = curve .key_size
9696 num_bytes = (num_bits + 7 ) // 8
9797
98- r , s = decode_rfc6979_signature (der_sig )
98+ r , s = decode_dss_signature (der_sig )
9999
100100 return number_to_bytes (r , num_bytes ) + number_to_bytes (s , num_bytes )
101101
@@ -110,4 +110,4 @@ def raw_to_der_signature(raw_sig, curve):
110110 r = bytes_to_number (raw_sig [:num_bytes ])
111111 s = bytes_to_number (raw_sig [num_bytes :])
112112
113- return encode_rfc6979_signature (r , s )
113+ return encode_dss_signature (r , s )
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def get_version(package):
6969 tests_require = tests_require ,
7070 extras_require = dict (
7171 test = tests_require ,
72- crypto = ['cryptography' ],
72+ crypto = ['cryptography >= 1.0 ' ],
7373 flake8 = [
7474 'flake8' ,
7575 'flake8-import-order' ,
You can’t perform that action at this time.
0 commit comments