Skip to content

Commit

Permalink
short url
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Jul 9, 2017
1 parent 8937df0 commit 3290796
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cryptography/hazmat/backends/openssl/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1779,8 +1779,7 @@ def load_dh_private_numbers(self, numbers):
# DH_check will return DH_NOT_SUITABLE_GENERATOR if p % 24 does not
# equal 11 when the generator is 2. We want to ignore that error
# because p % 24 == 23 is also fine. See:
# https://crypto.stackexchange.com/questions/12961/diffie-hellman-
# parameter-check-when-g-2-must-p-mod-24-11
# https://crypto.stackexchange.com/questions/12961
if codes[0] != 0 and not (
parameter_numbers.g == 2 and
codes[0] ^ self._lib.DH_NOT_SUITABLE_GENERATOR == 0
Expand Down

0 comments on commit 3290796

Please sign in to comment.