rsa

package
v0.0.0-...-e4b607e Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenExtRsaKey

func GenExtRsaKey(bits int) ([]byte, []byte, error)

func GenRsaKey

func GenRsaKey(bits int) error

func GetPubkey

func GetPubkey() (pk []byte)

func RsaDecrypt

func RsaDecrypt(ciphertext []byte) ([]byte, error)

Decrypt

func RsaDecryptWithKey

func RsaDecryptWithKey(ciphertext []byte, aPrivateKeyBytes []byte) ([]byte, error)

func RsaEncrypt

func RsaEncrypt(origData []byte) ([]byte, error)

Encrypt

func RsaEncryptWithKey

func RsaEncryptWithKey(origData []byte, aPublicKeyBytes []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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