Versions in this module Expand all Collapse all v0 v0.2.0 Oct 30, 2022 Changes in this version + func Decrypt(pk *rsa.PrivateKey, cipherText string, label string) (string, error) + func Encrypt(pk *rsa.PublicKey, clearText string, label string) (string, error) + func GenerateKey(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error) + func PrivateKeyFromBytes(priv []byte) (*rsa.PrivateKey, error) + func PrivateKeyToBytes(priv *rsa.PrivateKey) []byte + func PublicKeyFromBytes(pub []byte) (*rsa.PublicKey, error) + func PublicKeyToBytes(pub *rsa.PublicKey) ([]byte, error) + func Sign(pk *rsa.PrivateKey, message string) (string, error) + func ValidateSign(pk *rsa.PublicKey, message string, sign string) error