rsa

package
v0.0.0-...-003f888 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pem2PublicKey

func Pem2PublicKey(publicPem []byte) (*rsa.PublicKey, error)

Pem2PublicKey converts a PEM-encoded public key to an *rsa.PublicKey.

func SHA256Sign

func SHA256Sign(privateKey *rsa.PrivateKey, content []byte) ([]byte, error)

SHA256Sign signs a message using an RSA private key.

func VerifySHA256Sign

func VerifySHA256Sign(publicKey *rsa.PublicKey, sign []byte, content []byte) error

VerifySHA256Sign verifies an RSA signature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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