Skip to content

Commit

Permalink
Deal with API compat issue in pyca_cryptography
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasValvekens committed Jan 30, 2024
1 parent 1ef3572 commit f650d85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyhanko/pdf_utils/crypt/pubkey.py
Expand Up @@ -967,9 +967,7 @@ def decrypt_with_exchange(
or originator_pub_key.curve.name != priv_key.curve.name
):
raise ValueError(mismatch_msg)
ecdh_value = priv_key.exchange(
ECDH(), peer_public_key=originator_pub_key
)
ecdh_value = priv_key.exchange(ECDH(), originator_pub_key)
elif isinstance(priv_key, X25519PrivateKey):
if not isinstance(originator_pub_key, X25519PublicKey):
raise ValueError(mismatch_msg)
Expand Down

0 comments on commit f650d85

Please sign in to comment.