Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
Encrypt encrypts the given message with RSA-OAEP. Need a DER encoded public key, These values are typically found in PEM blocks with "BEGIN PUBLIC KEY".
func EncryptByCert ¶
Types ¶
type FileReader ¶
type FileReader struct {
FileName string
}
func (FileReader) ReadPem ¶
func (f FileReader) ReadPem() ([]byte, error)
type TextReader ¶
type TextReader struct {
Pem []byte
}
func (TextReader) ReadPem ¶
func (t TextReader) ReadPem() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.