Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePrivateKeyToPEM ¶
func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
EncodePrivateKeyToPEM encodes private key to PEM format
func GeneratePrivateKey ¶
func GeneratePrivateKey() (*rsa.PrivateKey, error)
GeneratePrivateKey generates new rsa private key
Types ¶
type Decrypt ¶
type Decrypt struct {
// contains filtered or unexported fields
}
Decrypt offers decryption pipe
func NewDecrypt ¶
NewDecrypt returns instance of Encrypt or error otherwise
type Encrypt ¶
type Encrypt struct {
// contains filtered or unexported fields
}
Encrypt offers encryption pipe
func NewEncrypt ¶
NewEncrypt returns instance of Encrypt or error otherwise
Click to show internal directories.
Click to hide internal directories.