utils

package
v0.0.0-...-b075d96 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(filename string) (content []byte)

func ReadPrivateKey

func ReadPrivateKey(privateKeyData []byte) (privateKey *rsa.PrivateKey, err error)

func ReadPrivateKeyFile

func ReadPrivateKeyFile(filepath string) (privateKey *rsa.PrivateKey, err error)

func ReadPublicKey

func ReadPublicKey(publicKeyData []byte) (publicKey *rsa.PublicKey, err error)

func ReadPublicKeyFile

func ReadPublicKeyFile(filepath string) (publicKey *rsa.PublicKey, err error)

func WriteFile

func WriteFile(content []byte, filename string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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