Documentation ¶
Index ¶
- func GeneratePrivateKey(bits int) ([]byte, error)
- func GeneratePrivateKeyFile(bits int, filepath string) error
- func GeneratePrivateKeyString(bits int) (string, error)
- func GeneratePublicKey(privateKey []byte) ([]byte, error)
- func GeneratePublicKeyFile(privateKey []byte, filepath string) error
- func GeneratePublicKeyString(privateKey string) (string, error)
- func PEMDecode(filepath string) (*pem.Block, error)
- func PEMEncode(filepath string, stream []byte, isPrivate bool) error
- type RSA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateKey ¶
func GeneratePrivateKeyFile ¶
func GeneratePublicKey ¶
func GeneratePublicKeyFile ¶
func GeneratePublicKeyString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.