Documentation ¶
Index ¶
- func Cmd(pather command.Pather) *cobra.Command
- func CombineSignedPayloads(trcs map[string]cppki.SignedTRC) ([]byte, error)
- func CreatePayload(cfg conf.TRC, pred *cppki.TRC) (*cppki.TRC, error)
- func DecodeFromFile(name string) (cppki.SignedTRC, error)
- func RunCombine(files []string, pld, out string, format string) error
- func RunSign(pld, certfile, keyName, kms, out, outDir string) error
- func RunVerify(files []string, anchor string, isd addr.ISD) error
- func SignPayload(pld []byte, signer crypto.Signer, cert *x509.Certificate) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineSignedPayloads ¶
CombineSignedPayloads combines the signed TRC payloads and checks that all payloads and signer infos are consistent.
func CreatePayload ¶
CreatePayload creates the ASN.1 payload for the TRC from the given configuration.
func DecodeFromFile ¶
DecodeFromFile decodes a signed TRC from the provided file.
func RunCombine ¶
RunCombine combines the partially signed TRC files and writes them to the out directory, pld is the payload file.
func SignPayload ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.