Documentation ¶
Index ¶
- func FromPrivatePEMBytes(data []byte, scheme nike.Scheme) (nike.PrivateKey, error)
- func FromPrivatePEMFile(filename string, scheme nike.Scheme) (nike.PrivateKey, error)
- func FromPrivatePEMString(data string, scheme nike.Scheme) (nike.PrivateKey, error)
- func FromPublicPEMBytes(data []byte, scheme nike.Scheme) (nike.PublicKey, error)
- func FromPublicPEMFile(filename string, scheme nike.Scheme) (nike.PublicKey, error)
- func FromPublicPEMString(data string, scheme nike.Scheme) (nike.PublicKey, error)
- func PrivateKeyToFile(filename string, key nike.PrivateKey, scheme nike.Scheme) error
- func PublicKeyToFile(filename string, key nike.PublicKey, scheme nike.Scheme) error
- func ToPrivatePEMBytes(key nike.PrivateKey, scheme nike.Scheme) []byte
- func ToPrivatePEMString(key nike.PrivateKey, scheme nike.Scheme) string
- func ToPublicPEMBytes(key nike.PublicKey, scheme nike.Scheme) []byte
- func ToPublicPEMString(key nike.PublicKey, scheme nike.Scheme) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromPrivatePEMBytes ¶
FromPrivatePEMBytes parses a PEM-encoded private key byte slice.
func FromPrivatePEMFile ¶
FromPrivatePEMFile reads and parses a private key from a PEM-encoded file.
func FromPrivatePEMString ¶
FromPrivatePEMString parses a PEM-encoded private key string.
func FromPublicPEMBytes ¶
FromPublicPEMBytes parses a PEM-encoded public key byte slice.
func FromPublicPEMFile ¶
FromPublicPEMFile reads and parses a public key from a PEM-encoded file.
func FromPublicPEMString ¶
FromPublicPEMString parses a PEM-encoded public key string.
func PrivateKeyToFile ¶
PrivateKeyToFile writes a private key to a file in PEM format.
func PublicKeyToFile ¶
PublicKeyToFile writes a public key to a file in PEM format.
func ToPrivatePEMBytes ¶
func ToPrivatePEMBytes(key nike.PrivateKey, scheme nike.Scheme) []byte
ToPrivatePEMBytes converts a private key to its PEM-encoded byte slice.
func ToPrivatePEMString ¶
func ToPrivatePEMString(key nike.PrivateKey, scheme nike.Scheme) string
ToPrivatePEMString converts a private key to its PEM-encoded string representation.
func ToPublicPEMBytes ¶
ToPublicPEMBytes converts a public key to its PEM-encoded byte slice.
Types ¶
This section is empty.