rsa

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 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 GenRsaKeyPKCS1 added in v1.0.11

func GenRsaKeyPKCS1(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