mint

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertInput

type AssertInput struct {
	PrivateKey      *ecdsa.PrivateKey
	ClientData      []byte
	ClientAppIDHash []byte
	SignCount       uint32
}

type AssertOutput

type AssertOutput struct {
	Assertion []byte
}

func GenerateAssertion

func GenerateAssertion(in *AssertInput) (AssertOutput, error)

type AttestInput

type AttestInput struct {
	IntermediatesDER  [][]byte
	IssuerCertificate *x509.Certificate
	IssuerKey         *ecdsa.PrivateKey
	AttestedKey       *ecdsa.PublicKey
	AAGUID            []byte

	NotBefore time.Time
	NotAfter  time.Time

	ServerChallenge []byte
	BundleIDHash    []byte

	SignCount uint32

	// MutateLeaf provides the caller with an opportunity to modify the certificate template before
	// it is processed.
	MutateLeafTemplate func(*x509.Certificate)
}

type AttestOutput

type AttestOutput struct {
	Attestation []byte
}

func AttestKey

func AttestKey(input *AttestInput) (AttestOutput, error)

type MintContext

type MintContext struct {
	CAKey     *ecdsa.PrivateKey
	CACertDer []byte

	IntKey     *ecdsa.PrivateKey
	IntCertDer []byte
}

func NewMintContext

func NewMintContext() (*MintContext, error)

func (*MintContext) DumpToDir

func (mc *MintContext) DumpToDir(p string) error

Jump to

Keyboard shortcuts

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