Documentation
¶
Index ¶
Constants ¶
View Source
const PemFramePrivateKeyPrefixSize = 16
View Source
const PemFramePublicKeyPrefixSize = 12
View Source
const PublicKeySize = 32
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func GeneratePrivateKey ¶
func GeneratePrivateKey() (PrivateKey, error)
func NewPrivateKeyFromPEM ¶ added in v1.2.1
func NewPrivateKeyFromPEM(content []byte) (PrivateKey, error)
func NewPrivateKeyFromPEMFile ¶
func NewPrivateKeyFromPEMFile(path string) (PrivateKey, error)
func (PrivateKey) PublicKeyBytes ¶
func (k PrivateKey) PublicKeyBytes() []byte
Click to show internal directories.
Click to hide internal directories.