cca

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

README

Parsec CCA Key Attestation Format

The parsec/cca package provides the following features:

  • Decode and validate a CBOR-encoded Parsec CCA Key Attestation buffer;
  • Verify the CCA token using the supplied CPAK public key;
  • Verify the binding between the key and platform tokens;
  • Provide access to all the claims in both the key and platform tokens.

Documentation

Overview

Copyright 2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Copyright 2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Copyright 2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNF

type CNF struct {
	COSEKey cose.Key `cbor:"1,keyasint,omitempty"`
}

type Evidence

type Evidence struct {
	Kat KAT
	Pat ccatoken.Evidence
	// contains filtered or unexported fields
}

func (*Evidence) FromCBOR

func (o *Evidence) FromCBOR(buf []byte) error

func (Evidence) Verify

func (o Evidence) Verify(pak crypto.PublicKey) error

type KAT

type KAT struct {
	Nonce *eat.Nonce `cbor:"10,keyasint,omitempty"`
	Cnf   *CNF       `cbor:"8,keyasint,omitempty"`
}

func (*KAT) FromCBOR

func (o *KAT) FromCBOR(b []byte) error

func (KAT) Validate

func (o KAT) Validate() error

Jump to

Keyboard shortcuts

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