Versions in this module Expand all Collapse all v0 v0.0.2 Jul 28, 2022 v0.0.1 Jul 22, 2022 Changes in this version + func Decrypt(privateKey, ciphertext []byte) ([]byte, error) + func Encrypt(publicKey, origData []byte) ([]byte, error) + func EncryptByCert(pemCertificate, origData []byte) ([]byte, error) + func OAEPPDecrypt(pub, pri string, ciphertext []byte) ([]byte, error) + type FileReader struct + FileName string + func (f FileReader) ReadPem() ([]byte, error) + type Reader interface + ReadPem func() ([]byte, error) + type TextReader struct + Pem []byte + func (t TextReader) ReadPem() ([]byte, error)