const KeyAlgoRSA …
const KeyAlgoDSA …
const KeyAlgoECDSA256 …
const KeyAlgoSKECDSA256 …
const KeyAlgoECDSA384 …
const KeyAlgoECDSA521 …
const KeyAlgoED25519 …
const KeyAlgoSKED25519 …
const KeyAlgoRSASHA256 …
const KeyAlgoRSASHA512 …
const SigAlgoRSA …
const SigAlgoRSASHA2256 …
const SigAlgoRSASHA2512 …
func parsePubKey(in []byte, algo string) (pubKey PublicKey, rest []byte, err error) { … }
func parseAuthorizedKey(in []byte) (out PublicKey, comment string, err error) { … }
func ParseKnownHosts(in []byte) (marker string, hosts []string, pubKey PublicKey, comment string, rest []byte, err error) { … }
func ParseAuthorizedKey(in []byte) (out PublicKey, comment string, options []string, rest []byte, err error) { … }
func ParsePublicKey(in []byte) (out PublicKey, err error) { … }
func MarshalAuthorizedKey(key PublicKey) []byte { … }
func MarshalPrivateKey(key crypto.PrivateKey, comment string) (*pem.Block, error) { … }
func MarshalPrivateKeyWithPassphrase(key crypto.PrivateKey, comment string, passphrase []byte) (*pem.Block, error) { … }
type PublicKey …
type CryptoPublicKey …
type Signer …
type AlgorithmSigner …
type MultiAlgorithmSigner …
func NewSignerWithAlgorithms(signer AlgorithmSigner, algorithms []string) (MultiAlgorithmSigner, error) { … }
type multiAlgorithmSigner …
func (s *multiAlgorithmSigner) Algorithms() []string { … }
func (s *multiAlgorithmSigner) isAlgorithmSupported(algorithm string) bool { … }
func (s *multiAlgorithmSigner) SignWithAlgorithm(rand io.Reader, data []byte, algorithm string) (*Signature, error) { … }
type rsaPublicKey …
func (r *rsaPublicKey) Type() string { … }
func parseRSA(in []byte) (out PublicKey, rest []byte, err error) { … }
func (r *rsaPublicKey) Marshal() []byte { … }
func (r *rsaPublicKey) Verify(data []byte, sig *Signature) error { … }
func (r *rsaPublicKey) CryptoPublicKey() crypto.PublicKey { … }
type dsaPublicKey …
func (k *dsaPublicKey) Type() string { … }
func checkDSAParams(param *dsa.Parameters) error { … }
func parseDSA(in []byte) (out PublicKey, rest []byte, err error) { … }
func (k *dsaPublicKey) Marshal() []byte { … }
func (k *dsaPublicKey) Verify(data []byte, sig *Signature) error { … }
func (k *dsaPublicKey) CryptoPublicKey() crypto.PublicKey { … }
type dsaPrivateKey …
func (k *dsaPrivateKey) PublicKey() PublicKey { … }
func (k *dsaPrivateKey) Sign(rand io.Reader, data []byte) (*Signature, error) { … }
func (k *dsaPrivateKey) Algorithms() []string { … }
func (k *dsaPrivateKey) SignWithAlgorithm(rand io.Reader, data []byte, algorithm string) (*Signature, error) { … }
type ecdsaPublicKey …
func (k *ecdsaPublicKey) Type() string { … }
func (k *ecdsaPublicKey) nistID() string { … }
type ed25519PublicKey …
func (k ed25519PublicKey) Type() string { … }
func parseED25519(in []byte) (out PublicKey, rest []byte, err error) { … }
func (k ed25519PublicKey) Marshal() []byte { … }
func (k ed25519PublicKey) Verify(b []byte, sig *Signature) error { … }
func (k ed25519PublicKey) CryptoPublicKey() crypto.PublicKey { … }
func supportedEllipticCurve(curve elliptic.Curve) bool { … }
func parseECDSA(in []byte) (out PublicKey, rest []byte, err error) { … }
func (k *ecdsaPublicKey) Marshal() []byte { … }
func (k *ecdsaPublicKey) Verify(data []byte, sig *Signature) error { … }
func (k *ecdsaPublicKey) CryptoPublicKey() crypto.PublicKey { … }
type skFields …
type skECDSAPublicKey …
func (k *skECDSAPublicKey) Type() string { … }
func (k *skECDSAPublicKey) nistID() string { … }
func parseSKECDSA(in []byte) (out PublicKey, rest []byte, err error) { … }
func (k *skECDSAPublicKey) Marshal() []byte { … }
func (k *skECDSAPublicKey) Verify(data []byte, sig *Signature) error { … }
func (k *skECDSAPublicKey) CryptoPublicKey() crypto.PublicKey { … }
type skEd25519PublicKey …
func (k *skEd25519PublicKey) Type() string { … }
func parseSKEd25519(in []byte) (out PublicKey, rest []byte, err error) { … }
func (k *skEd25519PublicKey) Marshal() []byte { … }
func (k *skEd25519PublicKey) Verify(data []byte, sig *Signature) error { … }
func (k *skEd25519PublicKey) CryptoPublicKey() crypto.PublicKey { … }
func NewSignerFromKey(key interface{ … }
func newDSAPrivateKey(key *dsa.PrivateKey) (Signer, error) { … }
type wrappedSigner …
func NewSignerFromSigner(signer crypto.Signer) (Signer, error) { … }
func (s *wrappedSigner) PublicKey() PublicKey { … }
func (s *wrappedSigner) Sign(rand io.Reader, data []byte) (*Signature, error) { … }
func (s *wrappedSigner) Algorithms() []string { … }
func (s *wrappedSigner) SignWithAlgorithm(rand io.Reader, data []byte, algorithm string) (*Signature, error) { … }
func NewPublicKey(key interface{ … }
func ParsePrivateKey(pemBytes []byte) (Signer, error) { … }
func ParsePrivateKeyWithPassphrase(pemBytes, passphrase []byte) (Signer, error) { … }
func encryptedBlock(block *pem.Block) bool { … }
type PassphraseMissingError …
func (*PassphraseMissingError) Error() string { … }
func ParseRawPrivateKey(pemBytes []byte) (interface{ … }
func ParseRawPrivateKeyWithPassphrase(pemBytes, passphrase []byte) (interface{ … }
func ParseDSAPrivateKey(der []byte) (*dsa.PrivateKey, error) { … }
func unencryptedOpenSSHKey(cipherName, kdfName, kdfOpts string, privKeyBlock []byte) ([]byte, error) { … }
func passphraseProtectedOpenSSHKey(passphrase []byte) openSSHDecryptFunc { … }
func unencryptedOpenSSHMarshaler(privKeyBlock []byte) ([]byte, string, string, string, error) { … }
func passphraseProtectedOpenSSHMarshaler(passphrase []byte) openSSHEncryptFunc { … }
const privateKeyAuthMagic …
type openSSHDecryptFunc …
type openSSHEncryptFunc …
type openSSHEncryptedPrivateKey …
type openSSHPrivateKey …
type openSSHRSAPrivateKey …
type openSSHEd25519PrivateKey …
type openSSHECDSAPrivateKey …
func parseOpenSSHPrivateKey(key []byte, decrypt openSSHDecryptFunc) (crypto.PrivateKey, error) { … }
func marshalOpenSSHPrivateKey(key crypto.PrivateKey, comment string, encrypt openSSHEncryptFunc) (*pem.Block, error) { … }
func checkOpenSSHKeyPadding(pad []byte) error { … }
func generateOpenSSHPadding(block []byte, blockSize int) []byte { … }
func FingerprintLegacyMD5(pubKey PublicKey) string { … }
func FingerprintSHA256(pubKey PublicKey) string { … }