RSA

package
v0.0.0-...-41c7706 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptByPrivateRSA

func DecryptByPrivateRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)

func DecryptByPublicKeyRSA

func DecryptByPublicKeyRSA(publicKey *rsa.PublicKey, data []byte) ([]byte, error)

func EncryptByPrivateKeyRSA

func EncryptByPrivateKeyRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)

func EncryptByPublicRSA

func EncryptByPublicRSA(publicKey *rsa.PublicKey, data []byte) ([]byte, error)

func GenerateRandomKeyOfRSA

func GenerateRandomKeyOfRSA() (*rsa.PrivateKey, *rsa.PublicKey, error)

func GenerateSha256SignWithPrivateKeyRSA

func GenerateSha256SignWithPrivateKeyRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)

func VerifySignSha256WithPublicKeyRSA

func VerifySignSha256WithPublicKeyRSA(publicKey *rsa.PublicKey, data []byte, sign []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