Versions in this module Expand all Collapse all v1 v1.0.0 Apr 19, 2023 Changes in this version + func DecodePrivKeyPEM(pk []byte) (*rsa.PrivateKey, error) + func DecodePubKeyPEM(pk []byte) (*rsa.PublicKey, error) + func DecryptMessage(cyphertxt []byte, priv *rsa.PrivateKey) ([]byte, error) + func DecryptMessageWithPEMKey(cyphertxt []byte, priv []byte) ([]byte, error) + func EncodePrivKeyPEM(priv *rsa.PrivateKey) []byte + func EncodePubKeyPEM(pub *rsa.PublicKey) []byte + func EncryptMessage(plaintxt []byte, pub *rsa.PublicKey) ([]byte, error) + func EncryptMessageWithPEMKey(plaintxt []byte, pub []byte) ([]byte, error) + func GenerateRSAKeyPair(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error) + func GetFingerprint(pub *rsa.PublicKey) string