rsa

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptSHA512

func DecryptSHA512(rsaKey *rsa.PrivateKey, msgEncr []byte) ([]byte, error)

func EncodePEMPrivateKey

func EncodePEMPrivateKey(privKey crypto.PrivateKey) ([]byte, error)

Encode private key to PKCS1 format embedded in a PEM block

func EncodePEMPublicKey

func EncodePEMPublicKey(pubKey crypto.PublicKey) ([]byte, error)

Encode public key to PKIX format embedded in a PEM block

func GenerateKeyPair

func GenerateKeyPair(kbIn int) (pubKey *rsa.PublicKey, privKey *rsa.PrivateKey, err error)

Generates RSA key pairs

Types

This section is empty.

Jump to

Keyboard shortcuts

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