Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCipherFailure = errors.New("unable to initialize AES cipher") ErrMacFailure = errors.New("unable to initialize Mac") )
Functions ¶
func EncodePEMSymmetricKey ¶
EncodePEMSymmetricKey encodes the raw key in a PEM block with the SYMMETRIC KEY type.
func ParsePEMSymmetricKey ¶
ParsePEMSymmetricKey parses the first PEM block in b and returns the data within.
This provides a more idiomatic way of accessing errors (when compared with the pem.Decode function), and allows us to add more validation in the future (e.g., if we want to make use of PEM headers).
Types ¶
type Version ¶
type Version uint64
Version identifies the version of a trust file. It cannot be marshalled/unmarshalled to/from LatestVer.
const LatestVer Version = 0
LatestVer is the wildcard version indicating the highest available version when requesting certificate chains and TRCs.
Click to show internal directories.
Click to hide internal directories.