Documentation ¶
Index ¶
Constants ¶
View Source
const PublicKeySize = 33
Variables ¶
This section is empty.
Functions ¶
func NewPemPair ¶
func PemToPrivateKey ¶
func PrivateKeyToPem ¶
func PublicKeyToPem ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func GeneratePrivateKey ¶ added in v1.4.2
func GeneratePrivateKey() (PrivateKey, error)
func NewPrivateKeyFromPem ¶
func NewPrivateKeyFromPem(content []byte) (PrivateKey, error)
func (PrivateKey) PublicKeyBytes ¶
func (v PrivateKey) PublicKeyBytes() []byte
func (PrivateKey) ToPem ¶ added in v1.4.3
func (v PrivateKey) ToPem() ([]byte, error)
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func NewPublicKey ¶
Click to show internal directories.
Click to hide internal directories.