Versions in this module Expand all Collapse all v0 v0.1.1 Nov 3, 2019 v0.1.0 Nov 3, 2019 Changes in this version + func AddTimestamps(sd *protocol.SignedData, url string) (err error) + type CMS struct + ContentEncryptionAlgorithm asn1.ObjectIdentifier + Intermediate *x509.CertPool + Opts x509.VerifyOptions + TimeStamp bool + TimeStampServer string + func New(cert ...tls.Certificate) (cms *CMS, err error) + func (cms *CMS) AddAttribute(attrType asn1.ObjectIdentifier, val interface{}) (err error) + func (cms *CMS) AuthDecrypt(contentInfo []byte) (plain []byte, err error) + func (cms *CMS) AuthEncrypt(data []byte, recipients []*x509.Certificate) (der []byte, err error) + func (cms *CMS) Decrypt(contentInfo []byte) (plain []byte, err error) + func (cms *CMS) Encrypt(data []byte, recipients []*x509.Certificate) (der []byte, err error) + func (cms *CMS) Sign(data []byte, detachedSignature ...bool) (der []byte, err error) + func (cms *CMS) Verify(contentInfo []byte) (chains [][][]*x509.Certificate, err error) + func (cms *CMS) VerifyDetached(contentInfo, msg []byte) (chains [][][]*x509.Certificate, err error)