openssh_key.pascal_style_byte_streamΒΆ

Classes for manipulating bytestreams containing values that may be fixed- or variable-size.

Classes

PascalStyleByteStream([initial_bytes])

Methods on io.BytesIO that allow reading and writing values either as struct values, or as Pascal-style values: variable-length bytes, str, or variable-precision int values prefixed by the length of such variable-length value.

PascalStyleFormatInstruction(value)

Format instructions for variable-length values that may appear in a PascalStyleByteStream representing an OpenSSH key, per RFC 4251.

PascalStyleFormatInstructionStringLengthSize(...)

A format instruction for a variable-length value, and the size, in bytes, of the unsigned int prefix describing the value's length in bytes.