File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 5252 "Programming Language :: Python :: 3.7" ,
5353 "Programming Language :: Python :: 3.8" ,
5454 ],
55- install_requires = ["cryptography<=3.0 " , "requests" ],
55+ install_requires = ["cryptography" , "requests" ],
5656 tests_require = ["pytest" ],
5757 zip_safe = False ,
5858 extras_require = {
Original file line number Diff line number Diff line change @@ -172,10 +172,10 @@ def rsa_construct_private(numbers):
172172 try :
173173 cnum ["iqmp" ] = numbers ["di" ]
174174 except KeyError :
175- cnum ["iqmp" ] = rsa .rsa_crt_iqmp (cnum ["p" ], cnum ["p " ])
175+ cnum ["iqmp" ] = rsa .rsa_crt_iqmp (cnum ["p" ], cnum ["q " ])
176176 else :
177177 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 " ])
179179
180180 rpubn = rsa .RSAPublicNumbers (e = numbers ["e" ], n = numbers ["n" ])
181181 rprivn = rsa .RSAPrivateNumbers (public_numbers = rpubn , ** cnum )
You can’t perform that action at this time.
0 commit comments