protocol

package
v0.0.0-...-58a6fb1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalEcdsaPubkeyToPEM

func MarshalEcdsaPubkeyToPEM(key ecdsa.PublicKey) (string, error)

func Marshalx509CertificateToPEM

func Marshalx509CertificateToPEM(cert x509.Certificate) string

func UnmarshalEcdsaPubkeyFromPEM

func UnmarshalEcdsaPubkeyFromPEM(keyPEM string) (*ecdsa.PublicKey, error)

func Unmarshalx509CertificateFromPEM

func Unmarshalx509CertificateFromPEM(certPEM string) (*x509.Certificate, error)

Types

type Attestation

type Attestation struct {
	Slot         piv.Slot
	Intermediate *x509.Certificate
	Statement    *x509.Certificate
}

func (*Attestation) PublicKey

func (attestation *Attestation) PublicKey() (*ecdsa.PublicKey, error)

func (*Attestation) VerifyWithConditions

func (attestation *Attestation) VerifyWithConditions(conditions conditions.MinimumConditions) (*piv.Attestation, error)

func (*Attestation) VerifyWithoutConditions

func (attestation *Attestation) VerifyWithoutConditions() (*piv.Attestation, error)

type ChallengeResponse

type ChallengeResponse struct {
	Challenge []byte
	Response  []byte
}

func (*ChallengeResponse) Verify

func (cr *ChallengeResponse) Verify(publicKey *ecdsa.PublicKey) (bool, error)

Jump to

Keyboard shortcuts

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