Versions in this module Expand all Collapse all v0 v0.1.0 Sep 7, 2023 Changes in this version + type AnySet struct + Elements []asn1.RawValue + func DecodeAnySet(rv asn1.RawValue) (as AnySet, err error) + func NewAnySet(elts ...asn1.RawValue) AnySet + func (as AnySet) Encode(dst *asn1.RawValue) (err error) + type AppleHashAgility struct + Content asn1.RawValue + Type asn1.ObjectIdentifier + type Attribute struct + RawValue asn1.RawValue + Type asn1.ObjectIdentifier + func GetTimestamp(url, proxy string, insecure bool, si SignerInfo) (Attribute, error) + func NewAttribute(typ asn1.ObjectIdentifier, val interface{}) (attr Attribute, err error) + type Attributes []Attribute + func (attrs Attributes) MarshaledForSigning() ([]byte, error) + type CDHash struct + CDHashes [][]byte + type ContentInfo struct + Content asn1.RawValue + ContentType asn1.ObjectIdentifier + type EncapsulatedContentInfo struct + EContent asn1.RawValue + EContentType asn1.ObjectIdentifier + func (eci EncapsulatedContentInfo) EContentValue() ([]byte, error) + type IssuerAndSerialNumber struct + Issuer asn1.RawValue + SerialNumber *big.Int + type MessageImprint struct + HashAlgorithm pkix.AlgorithmIdentifier + HashedMessage []byte + type PKIFreeText []asn1.RawValue + type PKIStatusInfo struct + FailInfo asn1.BitString + Status int + StatusString PKIFreeText + type Request struct + CertReq bool + Extensions []pkix.Extension + MessageImprint MessageImprint + Nonce *big.Int + ReqPolicy asn1.ObjectIdentifier + Version int + type Response struct + Status PKIStatusInfo + TimeStampToken ContentInfo + type SignedData struct + CRLs []asn1.RawValue + Certificates []asn1.RawValue + DigestAlgorithms []pkix.AlgorithmIdentifier + EncapContentInfo EncapsulatedContentInfo + SignerInfos []SignerInfo + Version int + func NewSignedData(data []byte) (*SignedData, error) + func (sd *SignedData) AddCertificate(cert *x509.Certificate) error + func (sd *SignedData) AddTimestamps(url, proxy string, insecure bool) error + func (sd *SignedData) Detached() + func (sd *SignedData) Sign(chain []*x509.Certificate, privateKey any) error + func (sd *SignedData) ToDER() ([]byte, error) + type SignerInfo struct + DigestAlgorithm pkix.AlgorithmIdentifier + SID asn1.RawValue + Signature []byte + SignatureAlgorithm pkix.AlgorithmIdentifier + SignedAttrs Attributes + UnsignedAttrs Attributes + Version int + func (si SignerInfo) Hash() (crypto.Hash, error)