Documentation ¶
Overview ¶
keyring provides utilities for loading and using crypto keys in different formats
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key interface { Comment() string IsPrivate() bool JWASignatureAlgorithm() (jwa.SignatureAlgorithm, error) JWK() jwk.Key JWKThumbprintSHA256() (string, error) JWKThumbprintURI() (string, error) PublicKey() (Key, error) Raw() (interface{}, error) SignJWT(jwt.Token) ([]byte, error) SignJWTWithAgent(agent.ExtendedAgent, jwt.Token) ([]byte, error) SSHFingerprintSHA256() (string, error) SSHPublicKey() (ssh.PublicKey, error) }
func OpenWithPassphrase ¶
Open reads a key from file using the provided passphrase, returning a Key
func ParseString ¶
ParseString is a shortcut for calling Parse with a string
Click to show internal directories.
Click to hide internal directories.