Documentation
¶
Overview ¶
package sshkey provides utilities for parsing and validating SSH key data. It includes functions to parse authorized_keys lines, extract Keymaster-specific metadata, and check for weak cryptographic algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHostKeyAlgorithm ¶
CheckHostKeyAlgorithm inspects the public key's algorithm and returns a warning message if the algorithm is considered weak or deprecated.
func Parse ¶
Parse splits a raw public key string (like one from an authorized_keys file) into its three core components: algorithm, key data, and comment. It correctly handles leading options in the line (e.g., from="...",command="...").
func ParseSerial ¶
ParseSerial extracts the Keymaster serial number from the header comment line of a Keymaster-managed authorized_keys file.
Types ¶
This section is empty.