Documentation ¶
Index ¶
- func CreateEcdsaKey() (*ecdsa.PrivateKey, error)
- func CreateEd25519Key() (ed25519.PublicKey, ed25519.PrivateKey, error)
- func CreateRSAKey(bits int) (*rsa.PrivateKey, error)
- func GenTlsConfig(pub []byte, pri []byte) (*tls.Config, error)
- func LoadHostKey(path string) (crypto.PrivateKey, error)
- func MarshalPriKey(pri crypto.PrivateKey) (bytes []byte, err error)
- func MarshalPubKey(pub crypto.PublicKey) (bytes []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEcdsaKey ¶
func CreateEcdsaKey() (*ecdsa.PrivateKey, error)
func CreateEd25519Key ¶
func CreateEd25519Key() (ed25519.PublicKey, ed25519.PrivateKey, error)
func CreateRSAKey ¶
func CreateRSAKey(bits int) (*rsa.PrivateKey, error)
func LoadHostKey ¶
func LoadHostKey(path string) (crypto.PrivateKey, error)
func MarshalPriKey ¶
func MarshalPriKey(pri crypto.PrivateKey) (bytes []byte, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.