aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Adams <mark@markadams.me>2014-12-13 10:43:01 -0600
committerMark Adams <mark@markadams.me>2014-12-13 10:43:01 -0600
commitb7b91179a5b1d4c28643f9e59bb46e52144a7de3 (patch)
tree4ca385376b7ad3da20fcd93f0619fb5562ae6485 /src
parent78a7d1c4c63737c4eae0c22207a00141a44402d3 (diff)
downloadcryptography-b7b91179a5b1d4c28643f9e59bb46e52144a7de3.tar.gz
cryptography-b7b91179a5b1d4c28643f9e59bb46e52144a7de3.tar.bz2
cryptography-b7b91179a5b1d4c28643f9e59bb46e52144a7de3.zip
Privatized the load_ssh_rsa_public_key function and fixed some coverage issues on test_serialization.
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/serialization.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/primitives/serialization.py b/src/cryptography/hazmat/primitives/serialization.py
index 0f07e41f..e1ffab9e 100644
--- a/src/cryptography/hazmat/primitives/serialization.py
+++ b/src/cryptography/hazmat/primitives/serialization.py
@@ -52,10 +52,10 @@ def load_ssh_public_key(data, backend):
if not data.startswith(b'ssh-rsa'):
raise UnsupportedAlgorithm('Only RSA keys are currently supported.')
- return load_ssh_rsa_public_key(data, backend)
+ return _load_ssh_rsa_public_key(data, backend)
-def load_ssh_rsa_public_key(data, backend):
+def _load_ssh_rsa_public_key(data, backend):
if not data.startswith(b'ssh-rsa '):
raise ValueError('SSH-formatted RSA keys must begin with ssh-rsa')