ssh_key_bin library

Utilities for processing binary formats of SSH keys.

This library is for internal use by the ssh_key library. Normal programs do not need to directly access the classes in this library.

In general, a SSH key file format contains the text encoding of a binary format. That binary format is a generic data structure that is used to store different data, depending on the public-key algorithm. This library implements code to process the binary formats.

Classes

BinaryFormat
Abstract base class for all binary formats.
BinaryLengthValue
Represents a length-value encoding of a value.
BinaryRange
Helper class for decoding binary data.
OpenSshPrivateKey
Represents the OpenSSH private key format.
Pkcs1RsaPrivateKey
PKCS #1 version 2.0 representation of an RSA private key.
Pkcs1RsaPublicKey
PKCS #1 version 2.0 representation of an RSA public key.
SubjectPublicKeyInfo
The "Subject Public Key Info" is defined by ASN.1 as a part of X.509. It consists of an algorithm (identified by an OID with optional parameters) and a bit string.

Functions

hexDump(Uint8List privateBytes, {String? name}) String
Converts a Uint8List to a hex dump string.