Versions in this module Expand all Collapse all v1 v1.0.0 Feb 4, 2022 Changes in this version + func Unmarshal(r io.Reader, target *Container) error + func UnmarshalBytes(allBytes []byte, target *Container) error + func UnmarshalFromFile(file string, target *Container) error + type Container struct + func New() *Container + func (c *Container) DecryptCertificate(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptEmail(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptEverything(nonce []byte, key []byte) error + func (c *Container) DecryptIdentifier(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptPrivateKey(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptRootCertificate(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptSerialNumber(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptSignature(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptToken(nonce []byte, key []byte) ([]byte, error) + func (c *Container) DecryptUsername(nonce []byte, key []byte) ([]byte, error) + func (c *Container) Dump(w io.Writer) + func (c *Container) EncryptCertificate(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptEmail(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptEverything(nonce []byte, key []byte) error + func (c *Container) EncryptIdentifier(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptPrivateKey(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptRootCertificate(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptSerialNumber(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptSignature(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptToken(nonce []byte, key []byte) ([]byte, error) + func (c *Container) EncryptUsername(nonce []byte, key []byte) ([]byte, error) + func (c *Container) GetCertificate() []byte + func (c *Container) GetEmail() []byte + func (c *Container) GetIdentifier() []byte + func (c *Container) GetNonce() []byte + func (c *Container) GetPassword() []byte + func (c *Container) GetPrivateKey() []byte + func (c *Container) GetRootCertificate() []byte + func (c *Container) GetSemVer() string + func (c *Container) GetSerialNumber() []byte + func (c *Container) GetSignature() []byte + func (c *Container) GetTag() []byte + func (c *Container) GetTlsCertificate() (*tls.Certificate, error) + func (c *Container) GetToken() []byte + func (c *Container) GetUsername() []byte + func (c *Container) GetVersionMajor() byte + func (c *Container) GetVersionMinor() byte + func (c *Container) GetVersionPatch() byte + func (c *Container) GetX509Certificate() (*x509.Certificate, error) + func (c *Container) GetX509RootCertificate() (*x509.Certificate, error) + func (c *Container) HeaderLen() int + func (c *Container) Headers() [headerSize]byte + func (c *Container) Len() int + func (c *Container) Marshal(w io.Writer) error + func (c *Container) MarshalBytes() []byte + func (c *Container) MarshalToFile(file string, perms os.FileMode) error + func (c *Container) Payload() []byte + func (c *Container) PayloadLen() int + func (c *Container) Read(s []byte) (int, error) + func (c *Container) SetCertificate(cert []byte) *Container + func (c *Container) SetEmail(e []byte) *Container + func (c *Container) SetIdentifier(id []byte) *Container + func (c *Container) SetNonce(n []byte) *Container + func (c *Container) SetPassword(p []byte) *Container + func (c *Container) SetPrivateKey(pk []byte) *Container + func (c *Container) SetRandomNonce() error + func (c *Container) SetRootCertificate(rc []byte) *Container + func (c *Container) SetSerialNumber(sn []byte) *Container + func (c *Container) SetSignature(sig []byte) *Container + func (c *Container) SetTag(t []byte) *Container + func (c *Container) SetToken(t []byte) *Container + func (c *Container) SetUsername(u []byte) *Container + func (c *Container) SetVersionMajor(v byte) *Container + func (c *Container) SetVersionMinor(v byte) *Container + func (c *Container) SetVersionPatch(v byte) *Container