rsa

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPrivateKeyForPEMEnvVar

func FormatPrivateKeyForPEMEnvVar(privateKey *rsa.PrivateKey) (string, error)

func FormatPrivateKeyForPEMFile

func FormatPrivateKeyForPEMFile(privateKey *rsa.PrivateKey) (string, error)

func FormatPublicKeyForPEMEnvVar

func FormatPublicKeyForPEMEnvVar(publicKey *rsa.PublicKey) (string, error)

func FormatPublicKeyForPEMFile

func FormatPublicKeyForPEMFile(publicKey *rsa.PublicKey) (string, error)

func ReadPrivateKeyFromPEM

func ReadPrivateKeyFromPEM(pemContents []byte) (*rsa.PrivateKey, error)

func ReadPrivateKeyFromPEMEnvVar

func ReadPrivateKeyFromPEMEnvVar(envVarValue string) (*rsa.PrivateKey, error)

func ReadPrivateKeyFromPEMFile

func ReadPrivateKeyFromPEMFile(filepath string) (*rsa.PrivateKey, error)

func ReadPublicKeyFromPEM

func ReadPublicKeyFromPEM(pemContents []byte) (*rsa.PublicKey, error)

func ReadPublicKeyFromPEMEnvVar

func ReadPublicKeyFromPEMEnvVar(envVarValue string) (*rsa.PublicKey, error)

func ReadPublicKeyFromPEMFile

func ReadPublicKeyFromPEMFile(filepath string) (*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