util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(n uint) ([]byte, error)

GenerateRandomBytes generates random bytes

func HashFileForState added in v0.1.2

func HashFileForState(path string) (string, error)

HashFileForState hashes a file's contents

func HashForState

func HashForState(value string) string

HashForState hashes the state

Types

type CA added in v0.2.6

type CA struct {
	PublicKey              string
	B64EncryptedPrivateKey string
	Password               []byte
}

CA has information around a CA

func NewCA added in v0.2.6

func NewCA(privateKey crypto.PrivateKey, publicKey interface{}, passwordBytes uint) (*CA, error)

NewCA generates the CA components from a private key

Jump to

Keyboard shortcuts

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