Versions in this module Expand all Collapse all v1 v1.0.4 Oct 23, 2019 v1.0.3 Sep 13, 2019 Changes in this version + func FormatPrivateKey(raw string) (result []byte) + func FormatPublicKey(raw string) (result []byte) + func ParsePKCS1PrivateKey(data []byte) (key *rsa.PrivateKey, err error) + func ParsePKCS1PublicKey(data []byte) (key *rsa.PublicKey, err error) + func RSADecryptPKCS1(ciphertext, key []byte) ([]byte, error) + func RSADecryptPKCS1WithKey(ciphertext []byte, key *rsa.PrivateKey) ([]byte, error) + func RSAEncryptPKCS1(plaintext, key []byte) ([]byte, error) + func RSAEncryptPKCS1WithKey(plaintext []byte, key *rsa.PublicKey) ([]byte, error) + func SignPKCS1v15(src, key []byte, hash crypto.Hash) ([]byte, error) + func SignPKCS1v15WithKey(src []byte, key *rsa.PrivateKey, hash crypto.Hash) ([]byte, error) + func VerifyPKCS1v15(src, sig, key []byte, hash crypto.Hash) error + func VerifyPKCS1v15WithKey(src, sig []byte, key *rsa.PublicKey, hash crypto.Hash) error