diff options
author | Jared Hobbs <jared@pyhacker.com> | 2018-11-27 17:48:12 -0700 |
---|---|---|
committer | Jared Hobbs <jared@pyhacker.com> | 2018-11-27 17:48:12 -0700 |
commit | e72aeaf1baf8c042179b88c718dd5fab0cecb3d2 (patch) | |
tree | 33009883e46e2eb4a1e7982cd5f7b1da65845a5c /paramiko/rsakey.py | |
parent | eff204faf5624c51b7ac96b9b93e4ce9622f853a (diff) | |
download | paramiko-e72aeaf1baf8c042179b88c718dd5fab0cecb3d2.tar.gz |
blacken
Diffstat (limited to 'paramiko/rsakey.py')
-rw-r--r-- | paramiko/rsakey.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py index 3ff601ec..938660d5 100644 --- a/paramiko/rsakey.py +++ b/paramiko/rsakey.py @@ -189,11 +189,8 @@ class RSAKey(PKey): except ValueError as e: raise SSHException(str(e)) elif pkformat == self.PRIVATE_KEY_FORMAT_OPENSSH: - n, e, d, iqmp, q, p = self._uint32_cstruct_unpack(data, 'iiiiii') - public_numbers = rsa.RSAPublicNumbers( - e=e, - n=n, - ) + n, e, d, iqmp, q, p = self._uint32_cstruct_unpack(data, "iiiiii") + public_numbers = rsa.RSAPublicNumbers(e=e, n=n) key = rsa.RSAPrivateNumbers( p=p, q=q, @@ -204,6 +201,6 @@ class RSAKey(PKey): public_numbers=public_numbers, ).private_key(default_backend()) else: - raise SSHException('unknown private key format.') + raise SSHException("unknown private key format.") assert isinstance(key, rsa.RSAPrivateKey) self.key = key |