diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-11-29 12:19:30 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-11-29 12:19:30 -0800 |
commit | 184ddbc7e08e7918a381cb517d191be45304ae3a (patch) | |
tree | 5706ac527182b90952fe7abfc8eec3d1e5cb8f71 /paramiko/ed25519key.py | |
parent | f324c83eba454d06d43bfd2e6fd4a52f1d6e04f4 (diff) | |
parent | bba1f99938508de41e23e557960f4c3c563263e2 (diff) | |
download | paramiko-184ddbc7e08e7918a381cb517d191be45304ae3a.tar.gz |
Merge branch '2.2' into 2.3
Diffstat (limited to 'paramiko/ed25519key.py')
-rw-r--r-- | paramiko/ed25519key.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/ed25519key.py b/paramiko/ed25519key.py index 418a822d..8ad71d08 100644 --- a/paramiko/ed25519key.py +++ b/paramiko/ed25519key.py @@ -25,6 +25,7 @@ import six from paramiko.message import Message from paramiko.pkey import PKey +from paramiko.py3compat import b from paramiko.ssh_exception import SSHException, PasswordRequiredException @@ -132,7 +133,7 @@ class Ed25519Key(PKey): else: cipher = Transport._cipher_info[ciphername] key = bcrypt.kdf( - password=password, + password=b(password), salt=bcrypt_salt, desired_key_bytes=cipher["key-size"] + cipher["block-size"], rounds=bcrypt_rounds, |