File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 52
52
"Programming Language :: Python :: 3.7" ,
53
53
"Programming Language :: Python :: 3.8" ,
54
54
],
55
- install_requires = ["cryptography<=3.0 " , "requests" ],
55
+ install_requires = ["cryptography" , "requests" ],
56
56
tests_require = ["pytest" ],
57
57
zip_safe = False ,
58
58
extras_require = {
Original file line number Diff line number Diff line change @@ -172,10 +172,10 @@ def rsa_construct_private(numbers):
172
172
try :
173
173
cnum ["iqmp" ] = numbers ["di" ]
174
174
except KeyError :
175
- cnum ["iqmp" ] = rsa .rsa_crt_iqmp (cnum ["p" ], cnum ["p " ])
175
+ cnum ["iqmp" ] = rsa .rsa_crt_iqmp (cnum ["p" ], cnum ["q " ])
176
176
else :
177
177
if not numbers ["di" ]:
178
- cnum ["iqmp" ] = rsa .rsa_crt_iqmp (cnum ["p" ], cnum ["p " ])
178
+ cnum ["iqmp" ] = rsa .rsa_crt_iqmp (cnum ["p" ], cnum ["q " ])
179
179
180
180
rpubn = rsa .RSAPublicNumbers (e = numbers ["e" ], n = numbers ["n" ])
181
181
rprivn = rsa .RSAPrivateNumbers (public_numbers = rpubn , ** cnum )
You can’t perform that action at this time.
0 commit comments