Skip to content

Commit

Permalink
Fix for compatibility with old versions of cryptography
Browse files Browse the repository at this point in the history
  • Loading branch information
pghmcfc committed Mar 21, 2022
1 parent 5dcdb2c commit 43189ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from paramiko.ssh_gss import GSS_AUTH_AVAILABLE

from cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding, rsa

Expand Down Expand Up @@ -155,7 +156,7 @@ def sha1_signing_unsupported():
not supported by the backend.
"""
private_key = rsa.generate_private_key(
public_exponent=65537, key_size=2048
public_exponent=65537, key_size=2048, backend=default_backend()
)
message = b"Some dummy text"
try:
Expand Down

0 comments on commit 43189ef

Please sign in to comment.