crypto

package
v0.0.0-...-5152f1c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CheckRSAKeyPair

func CheckRSAKeyPair(pubKeyData, privKeyData []byte) error

CheckRSAKeyPair returns an error if the provided public and private key bytes do not comprise a valid RSA key pair.

func GenerateRSAKeyPair

func GenerateRSAKeyPair() ([]byte, []byte, error)

GenerateRSAKeyPair creates a new RSA key pair and returns the public and private keys as PEM-encoded bytes.

func NewAES256Key

func NewAES256Key() []byte

func NewIdentityKey

func NewIdentityKey() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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