mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
3102114ff3
* add CC platform identification capability * add token verification * add snp azure * add azure snp report verification * fix linter errors * fix agent tests * expand the CC provider * fix azure atls * rebase branch * add nonce check for azure token * rename package attestations * remove alias attestations --------- Co-authored-by: Ubuntu <azureuser@UVCTestCVM.bu0p0zdolasezg1jifpyqhaxuc.dx.internal.cloudapp.net>
35 lines
893 B
Go
35 lines
893 B
Go
// Copyright (c) Ultraviolet
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package attestation
|
|
|
|
import cocosai "github.com/ultravioletrs/cocos"
|
|
|
|
var _ Provider = (*EmptyProvider)(nil)
|
|
|
|
type EmptyProvider struct{}
|
|
|
|
func (e *EmptyProvider) Attestation(teeNonce []byte, vTpmNonce []byte) ([]byte, error) {
|
|
return cocosai.EmbeddedAttestation, nil
|
|
}
|
|
|
|
func (e *EmptyProvider) TeeAttestation(teeNonce []byte) ([]byte, error) {
|
|
return cocosai.EmbeddedAttestation, nil
|
|
}
|
|
|
|
func (e *EmptyProvider) VTpmAttestation(vTpmNonce []byte) ([]byte, error) {
|
|
return cocosai.EmbeddedAttestation, nil
|
|
}
|
|
|
|
func (e *EmptyProvider) VerifTeeAttestation(report []byte, teeNonce []byte) error {
|
|
return nil
|
|
}
|
|
|
|
func (e *EmptyProvider) VerifVTpmAttestation(report []byte, vTpmNonce []byte) error {
|
|
return nil
|
|
}
|
|
|
|
func (e *EmptyProvider) VerifyAttestation(report []byte, teeNonce []byte, vTpmNonce []byte) error {
|
|
return nil
|
|
}
|