rsa

package
v0.0.0-...-932f233 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKeySize = 2048

Variables

This section is empty.

Functions

func FromPEMBytesToPrivateKey

func FromPEMBytesToPrivateKey(b []byte) (*rsa.PrivateKey, error)

func FromPEMBytesToPublicKey

func FromPEMBytesToPublicKey(b []byte) (*rsa.PublicKey, error)

func FromPrivateKeyPEMBytesToPublicKeyPEMBytes

func FromPrivateKeyPEMBytesToPublicKeyPEMBytes(b []byte) ([]byte, error)

func FromPrivateKeyToPEMBytes

func FromPrivateKeyToPEMBytes(key *rsa.PrivateKey) ([]byte, error)

func FromPrivateKeyToPublicKeyPEMBytes

func FromPrivateKeyToPublicKeyPEMBytes(key *rsa.PrivateKey) ([]byte, error)

func GenerateKey

func GenerateKey(bits int) (*rsa.PrivateKey, error)

GenerateKey generates a new default RSA keypair.

func IsPrivateKeyPEMBytes

func IsPrivateKeyPEMBytes(b []byte) bool

func IsPublicKeyPEMBytes

func IsPublicKeyPEMBytes(b []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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