rsa

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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