Documentation ¶
Index ¶
- Constants
- func DecodePemBlock(header PemType, content []byte) (*pem.Block, error)
- func PemEncodeCertificate(content []byte) []byte
- func PemEncodePrivate(format Format, content []byte) []byte
- func PemEncodePublic(format Format, content []byte) []byte
- func PemMarshalPKCS8Private(format Format, key crypto.PrivateKey) ([]byte, error)
- func PemMarshalPublic(format Format, key crypto.PublicKey) ([]byte, error)
- func PemUnmarshalCertificate(content []byte) (*x509.Certificate, error)
- func PemUnmarshalPKCS8Private[T crypto.PrivateKey](format Format, content []byte) (key T, err error)
- func PemUnmarshalPublic[T crypto.PublicKey](format Format, content []byte) (key T, err error)
- func SshMarshalPrivate(key crypto.PrivateKey, comment string) ([]byte, error)
- func SshMarshalPublic(key crypto.PublicKey) ([]byte, error)
- type Format
- type FormattedType
- type PemType
- type Type
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func PemEncodeCertificate ¶
func PemEncodePrivate ¶
func PemEncodePublic ¶
func PemMarshalPKCS8Private ¶ added in v1.19.16
func PemMarshalPKCS8Private(format Format, key crypto.PrivateKey) ([]byte, error)
func PemUnmarshalCertificate ¶
func PemUnmarshalCertificate(content []byte) (*x509.Certificate, error)
func PemUnmarshalPKCS8Private ¶ added in v1.19.16
func PemUnmarshalPKCS8Private[T crypto.PrivateKey](format Format, content []byte) (key T, err error)
func PemUnmarshalPublic ¶
func SshMarshalPrivate ¶
func SshMarshalPrivate(key crypto.PrivateKey, comment string) ([]byte, error)
Types ¶
type FormattedType ¶
func (FormattedType) String ¶
func (f FormattedType) String() string
Click to show internal directories.
Click to hide internal directories.