Documentation ¶
Index ¶
Constants ¶
View Source
const PemTypeCertificate = "CERTIFICATE"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { Payload []byte `json:"payload"` PayloadType string `json:"payloadType"` Signatures []Signature `json:"signatures"` }
func Sign ¶
TODO: it'd be nice to break some of this logic out of what should be a presentation layer only
func (Envelope) Verify ¶
func (e Envelope) Verify(opts ...VerificationOption) ([]cryptoutil.Verifier, error)
type ErrNoMatchingSigs ¶
type ErrNoMatchingSigs struct{}
func (ErrNoMatchingSigs) Error ¶
func (e ErrNoMatchingSigs) Error() string
type ErrNoSignatures ¶
type ErrNoSignatures struct{}
func (ErrNoSignatures) Error ¶
func (e ErrNoSignatures) Error() string
type VerificationOption ¶
type VerificationOption func(*verificationOptions)
func WithIntermediates ¶
func WithIntermediates(intermediates []*x509.Certificate) VerificationOption
func WithRoots ¶
func WithRoots(roots []*x509.Certificate) VerificationOption
func WithVerifiers ¶
func WithVerifiers(verifiers []cryptoutil.Verifier) VerificationOption
Click to show internal directories.
Click to hide internal directories.