Documentation
¶
Index ¶
Constants ¶
View Source
const ( // v1.0 global keys. // Run command `gcloud kms keys versions get-public-key 1 --keyring attestor --key google-hosted-worker --project verified-builder --location global`. V10GlobalPAEKeyID = "projects/verified-builder/locations/global/keyRings/attestor/cryptoKeys/google-hosted-worker/cryptoKeyVersions/1" // v0.1 global keys. // Run command `gcloud kms keys versions get-public-key 1 --keyring attestor --key provenanceSigner --project verified-builder --location global`. V01GlobalPAEKeyID = "projects/verified-builder/locations/global/keyRings/attestor/cryptoKeys/provenanceSigner/cryptoKeyVersions/1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalPAEKey ¶ added in v2.1.0
type GlobalPAEKey struct { Verifier *dsselib.EnvelopeVerifier // contains filtered or unexported fields }
func NewGlobalPAEKey ¶ added in v2.1.0
func NewGlobalPAEKey(id string) (*GlobalPAEKey, error)
func (*GlobalPAEKey) KeyID ¶ added in v2.1.0
func (v *GlobalPAEKey) KeyID() (string, error)
KeyID implements dsse.Verifier.KeyID.
func (*GlobalPAEKey) Name ¶ added in v2.4.0
func (v *GlobalPAEKey) Name() string
func (*GlobalPAEKey) Public ¶ added in v2.1.0
func (v *GlobalPAEKey) Public() crypto.PublicKey
Public implements dsse.Verifier.Public.
func (*GlobalPAEKey) Verify ¶ added in v2.1.0
func (v *GlobalPAEKey) Verify(_ context.Context, data, sig []byte) error
Verify implements dsse.Verifier.Verify. It verifies a signature formatted in DSSE-conformant PAE.
func (*GlobalPAEKey) VerifyPAESignature ¶ added in v2.1.0
func (v *GlobalPAEKey) VerifyPAESignature(envelope *dsselib.Envelope) error
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func NewPublicKey ¶ added in v2.1.0
Click to show internal directories.
Click to hide internal directories.