bundle

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 23 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeNewBundle added in v2.6.0

func MakeNewBundle(pubKey crypto.PublicKey, rekorEntry *models.LogEntryAnon, payload, sig, signer, timestampBytes []byte) ([]byte, error)

func MakeProtobufBundle added in v2.4.0

func MakeProtobufBundle(hint string, rawCert []byte, rekorEntry *models.LogEntryAnon, timestampBytes []byte) (*protobundle.Bundle, error)

func SignData added in v2.6.0

func SignData(ctx context.Context, content sign.Content, keypair sign.Keypair, idToken string, signingConfig *root.SigningConfig, trustedMaterial root.TrustedMaterial) ([]byte, error)

Types

type RFC3161Timestamp

type RFC3161Timestamp struct {
	// SignedRFC3161Timestamp contains a DER encoded TimeStampResponse.
	// See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2
	// Clients MUST verify the hashed message in the message imprint,
	// typically using the artifact signature.
	SignedRFC3161Timestamp []byte
}

RFC3161Timestamp holds metadata about timestamp RFC3161 verification data.

func TimestampToRFC3161Timestamp

func TimestampToRFC3161Timestamp(timestampRFC3161 []byte) *RFC3161Timestamp

TimestampToRFC3161Timestamp receives a base64 encoded RFC3161 timestamp.

type RekorBundle

type RekorBundle struct {
	SignedEntryTimestamp []byte
	Payload              RekorPayload
}

RekorBundle holds metadata about recording a Signature's ephemeral key to a Rekor transparency log.

func EntryToBundle

func EntryToBundle(entry *models.LogEntryAnon) *RekorBundle

type RekorPayload

type RekorPayload struct {
	Body           interface{} `json:"body"`
	IntegratedTime int64       `json:"integratedTime"`
	LogIndex       int64       `json:"logIndex"`
	LogID          string      `json:"logID"`
}

Jump to

Keyboard shortcuts

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