common

package
v2.0.0-...-29e99d1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func MakeFileName

func MakeFileName(dirName, baseName, ext string) string

func MustHexDecode

func MustHexDecode(s string) []byte

func PubKeyFromJWK

func PubKeyFromJWK(rawJWK []byte) (crypto.PublicKey, error)

PubKeyFromJWK extracts a crypto.PublicKey from the supplied JSON Web Key

func SignerFromJWK

func SignerFromJWK(rawJWK []byte) (cose.Signer, error)

SignerFromJWK creates a go-cose Signer object from the supplied JSON Web Key (JWK) description

Types

type IVeraisonClient

type IVeraisonClient interface {
	Run() ([]byte, error)
	SetNonce(nonce []byte) error
	SetSessionURI(u string) error
	SetEvidenceBuilder(eb verification.EvidenceBuilder) error
	SetDeleteSession(v bool)
	SetNonceSz(nonceSz uint) error
}

IVeraisonClient is an interface for dealing with Veraison's apiclient/verification ChallengeResponseConfig objects

Jump to

Keyboard shortcuts

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