Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithPrivateKey ¶
func DecryptWithPrivateKey(ciphertext []byte, priv *rsa.PrivateKey) []byte
DecryptWithPrivateKey decrypts data with private key
func EncryptWithPublicKey ¶
EncryptWithPublicKey encrypts data with public key
func GenerateKeyPair ¶
func GenerateKeyPair() (*rsa.PrivateKey, *rsa.PublicKey)
GenerateKeyPair - generates a new key pair
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.