trcs

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(pather command.Pather) *cobra.Command

func CombineSignedPayloads

func CombineSignedPayloads(trcs map[string]cppki.SignedTRC) ([]byte, error)

CombineSignedPayloads combines the signed TRC payloads and checks that all payloads and signer infos are consistent.

func CreatePayload

func CreatePayload(cfg conf.TRC, pred *cppki.TRC) (*cppki.TRC, error)

CreatePayload creates the ASN.1 payload for the TRC from the given configuration.

func DecodeFromFile

func DecodeFromFile(name string) (cppki.SignedTRC, error)

DecodeFromFile decodes a signed TRC from the provided file.

func RunCombine

func RunCombine(files []string, pld, out string, format string) error

RunCombine combines the partially signed TRC files and writes them to the out directory, pld is the payload file.

func RunSign

func RunSign(pld, certfile, keyName, kms, out, outDir string) error

func RunVerify

func RunVerify(files []string, anchor string, isd addr.ISD) error

RunVerify runs verification of the TRC files from the given anchor.

func SignPayload

func SignPayload(pld []byte, signer crypto.Signer, cert *x509.Certificate) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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