rsa

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRsaKey

func GenRsaKey(priKeyFileName string, pubKeyFileName string, bits int) error

func ReadRsaKeys

func ReadRsaKeys(priKeyFileName string, pubKeyFileName string) (error, []byte, []byte)

func ReadRsaPubKey

func ReadRsaPubKey(priKeyFileName string, pubKeyFileName string) (error, string)

func RsaDecrypt

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

func RsaDecryptByDefaultKey

func RsaDecryptByDefaultKey(b64CipherText string, sumHext string) ([]byte, error)

func RsaEncrypt

func RsaEncrypt(origData []byte, publicKey []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