realm

package
v0.0.2411 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

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

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

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

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetREMs

func GetREMs(attr json.RawMessage) ([][]byte, error)

func GetRIM

func GetRIM(attr json.RawMessage) (string, error)

func GetRPV

func GetRPV(attr json.RawMessage) ([]byte, error)

func GetRealmReferenceIDs

func GetRealmReferenceIDs(
	scheme string,
	tenantID string,
	realmClaimsMap map[string]interface{},
) ([]string, error)

func MapToRealmClaims

func MapToRealmClaims(in map[string]interface{}) (realm.IClaims, error)

func RealmRefValLookupKey

func RealmRefValLookupKey(schemeName, tenantID, rim string) string

func SynthKeysForCcaRealm

func SynthKeysForCcaRealm(scheme string, tenantID string,
	refVal *handler.Endorsement,
) ([]string, error)

Types

type RealmAttributes

type RealmAttributes struct {
	RIM       *[]byte
	REM       [4]*[]byte
	HashAlgID string
	RPV       *[]byte
}

func (*RealmAttributes) FromMeasurement

func (o *RealmAttributes) FromMeasurement(m comid.Measurement) error

func (*RealmAttributes) GetRefValType

func (o *RealmAttributes) GetRefValType() string

func (*RealmAttributes) Valid

func (o *RealmAttributes) Valid() error

type RealmClassAttributes

type RealmClassAttributes struct {
	UUID   *string
	Vendor *string
}

func (*RealmClassAttributes) FromEnvironment

func (o *RealmClassAttributes) FromEnvironment(e comid.Environment) error

extract class variables from environment

type RealmExtractor

type RealmExtractor struct {
	Scheme string
}

func (RealmExtractor) RefValExtractor

func (o RealmExtractor) RefValExtractor(rvs comid.ValueTriples) ([]*handler.Endorsement, error)

type RealmInstanceAttributes

type RealmInstanceAttributes struct {
	InstID string
}

func (*RealmInstanceAttributes) FromEnvironment

func (o *RealmInstanceAttributes) FromEnvironment(e comid.Environment) error

Jump to

Keyboard shortcuts

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