Versions in this module Expand all Collapse all v0 v0.1.1 Oct 1, 2022 Changes in this version + func CreateKeyX509PKCS1(bits int) (pub string, pri string) + func Decrypt(key *rsa.PrivateKey, src []byte) (data []byte, err error) + func Encrypt(key *rsa.PublicKey, src []byte) (data []byte, err error) + func PrivateKeyFromX509PKCS1(pri string) (*rsa.PrivateKey, error) + func PublicKeyFromX509PKCS1(pub string) (*rsa.PublicKey, error) + func Sign(key *rsa.PrivateKey, src []byte) (sign []byte, err error) + func Verify(key *rsa.PublicKey, sign, src []byte) (err error)