Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate creates a private key in the OpenSSH PEM format and public key in the authorized key format.
func MarshalED25519PrivateKey ¶
func MarshalED25519PrivateKey(key ed25519.PrivateKey) ([]byte, error)
Types ¶
type Algorithm ¶
type Algorithm string
const ( // AlgorithmEd25519 is the Edwards-curve Digital Signature Algorithm using Curve25519 AlgorithmEd25519 Algorithm = "ed25519" // AlgorithmECDSA is the Digital Signature Algorithm (DSA) using NIST Elliptic Curve AlgorithmECDSA Algorithm = "ecdsa" // AlgorithmRSA4096 is the venerable Rivest-Shamir-Adleman algorithm // and creates a key with a fixed size of 4096-bit. AlgorithmRSA4096 Algorithm = "rsa4096" )
func ParseAlgorithm ¶
ParseAlgorithm returns a valid Algorithm or error if input is not a valid.
Click to show internal directories.
Click to hide internal directories.