bundle

package
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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