Documentation ¶
Index ¶
- func GenAndSaveKeyPair(keyPath string, pubKeyPath string, bits int, password string) error
- func KeyInPEMToRSA(pemKey []byte, password string) (*rsa.PrivateKey, error)
- func KeyInRSAToPEM(key *rsa.PrivateKey, password string) ([]byte, error)
- func KeyIsEncrypted(keyPath string) (bool, error)
- func LoadKeyFromFile(keyPath string, password string) (*rsa.PrivateKey, error)
- func LoadPubKeyFromFile(pubKeyPath string) (*rsa.PublicKey, error)
- func PEMIsEncrypted(data []byte) (bool, error)
- func PubKeyInPEMToRSA(pemPubKey []byte) (*rsa.PublicKey, error)
- func PubKeyInRSAToPEM(pubKey *rsa.PublicKey) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenAndSaveKeyPair ¶
func KeyInPEMToRSA ¶
func KeyInPEMToRSA(pemKey []byte, password string) (*rsa.PrivateKey, error)
func KeyInRSAToPEM ¶
func KeyInRSAToPEM(key *rsa.PrivateKey, password string) ([]byte, error)
func KeyIsEncrypted ¶
func LoadKeyFromFile ¶
func LoadKeyFromFile(keyPath string, password string) (*rsa.PrivateKey, error)
func PEMIsEncrypted ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.