utils

package
v0.0.0-...-b606183 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(serverName string) ([]byte, crypto.PrivateKey, *tls.Config)

func GetQueryParam

func GetQueryParam(r *http.Request, name string) string

func GetTimestampFromTSC

func GetTimestampFromTSC() uint64

func HttpsGet

func HttpsGet(tlsConfig *tls.Config, url string) ([]byte, error)

func VerifyRemoteReport

func VerifyRemoteReport(reportBytes []byte) (report attestation.Report, err error)

Types

type RandReader

type RandReader struct {
}

func (*RandReader) Read

func (r *RandReader) Read(out []byte) (n int, err error)

implements io.Reader

Jump to

Keyboard shortcuts

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