Versions in this module Expand all Collapse all v0 v0.1.1 Apr 18, 2023 v0.1.0 Apr 15, 2023 Changes in this version + func Decrypt(sk *rsa.PrivateKey, in []byte) ([]byte, error) + func Encrypt(pk *rsa.PublicKey, in, label []byte) ([]byte, error) + func ExportRSAPrivateKeyAsPEMString(privkey *rsa.PrivateKey) string + func ExportRSAPublicKeyAsPEMString(pubkey *rsa.PublicKey) (string, error) + func ParseRSAPrivateKeyFromPEMString(privPEM string) (*rsa.PrivateKey, error) + func ParseRSAPublicKeyFromPEMString(pubPEM string) (*rsa.PublicKey, error) + type KeyPair struct + Private *rsa.PrivateKey + Public *rsa.PublicKey + func GenerateKeyPair() (KeyPair, error)