diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-12-24 14:55:06 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-12-24 14:55:06 -0800 |
commit | 4b223434b4ca96de265334df036689264a82f9b8 (patch) | |
tree | 156d256d44ea32d1c84fff49c1b4b6e290b27774 /src | |
parent | 1a7d64e1bfd3e5d3877d3742388ac458bb64faa0 (diff) | |
download | cryptography-4b223434b4ca96de265334df036689264a82f9b8.tar.gz cryptography-4b223434b4ca96de265334df036689264a82f9b8.tar.bz2 cryptography-4b223434b4ca96de265334df036689264a82f9b8.zip |
Improved docstring
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/primitives/serialization.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/serialization.py b/src/cryptography/hazmat/primitives/serialization.py index 448062d5..b95ac1cd 100644 --- a/src/cryptography/hazmat/primitives/serialization.py +++ b/src/cryptography/hazmat/primitives/serialization.py @@ -116,7 +116,11 @@ def _load_ssh_ecdsa_public_key(expected_key_type, decoded_data, backend): def _read_next_string(data): - """Retrieves the next RFC 4251 string value from the data.""" + """ + Retrieves the next RFC 4251 string value from the data. + + While the RFC calls these strings, in Python they are bytes objects. + """ str_len, = struct.unpack('>I', data[:4]) return data[4:4 + str_len], data[4 + str_len:] |