encryptionproperties

package
v0.0.0-...-75d0260 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 5 Imported by: 0

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

func EncryptWithPublicKey(msg []byte, pub *rsa.PublicKey) []byte

EncryptWithPublicKey encrypts data with public key

func GenerateKeyPair

func GenerateKeyPair() (*rsa.PrivateKey, *rsa.PublicKey)

GenerateKeyPair - generates a new key pair

func PerformHandshake

func PerformHandshake(conn net.Conn, pub *rsa.PublicKey) *rsa.PublicKey

PerformHandshake performs handshake with encryption done

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL