utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertRSAPublicKeyToPEM

func ConvertRSAPublicKeyToPEM(pubKey *rsa.PublicKey) ([]byte, error)

func EncryptRSA

func EncryptRSA(publicKey rsa.PublicKey, data []byte) ([]byte, error)

EncryptRSA encrypts the data using RSA encryption with the given public key.

func ParseRSAPublicKeyFromPEM

func ParseRSAPublicKeyFromPEM(pemData []byte) (*rsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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