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
Click to show internal directories.
Click to hide internal directories.