Versions in this module Expand all Collapse all v1 v1.0.1 Oct 22, 2022 v1.0.0 Oct 22, 2022 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)