-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add "SevToken" data structure for the evidence token - Use "sevtool" to validate the certificate chain and signature in the Attestation Report - Generate EAR containing the Trust Worthiness Vector and the evidence received - Add sample endorsement & evidence tokens for SEV Signed-off-by: Jagannathan Raman <[email protected]>
- Loading branch information
Showing
6 changed files
with
391 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2024 Contributors to the Veraison project. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package sev | ||
|
||
import cbor "github.com/fxamacker/cbor/v2" | ||
|
||
var ( | ||
dm, dmError = initCBORDecMode() | ||
) | ||
|
||
func initCBORDecMode() (dm cbor.DecMode, err error) { | ||
decOpt := cbor.DecOptions{ | ||
IndefLength: cbor.IndefLengthForbidden, | ||
} | ||
return decOpt.DecMode() | ||
} | ||
|
||
func init() { | ||
if dmError != nil { | ||
panic(dmError) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.