Versions in this module Expand all Collapse all v8 v8.0.1 May 14, 2024 v8.0.0 May 8, 2024 Changes in this version + const FailureAddInfoNotAvailable + const FailureBadAlg + const FailureBadDataFormat + const FailureBadRequest + const FailureTimeNotAvailable + const FailureUnacceptedExtension + const FailureUnacceptedPolicy + const StatusGranted + const StatusGrantedWithMods + const StatusRejection + const StatusRevocationNotification + const StatusRevocationWarning + const StatusWaiting + const SystemFailure + var OidAttributeCounterSign = asn1.ObjectIdentifier + var OidAttributeTimeStampToken = asn1.ObjectIdentifier + var OidKeyPurposeTimeStamping = asn1.ObjectIdentifier + var OidSpcTimeStampRequest = asn1.ObjectIdentifier + var OidSpcTimeStampToken = asn1.ObjectIdentifier + var OidTSTInfo = asn1.ObjectIdentifier + func AddStampToSignedAuthenticode(signerInfo *pkcs7.SignerInfo, token pkcs7.ContentInfoSignedData) error + func AddStampToSignedData(signerInfo *pkcs7.SignerInfo, token pkcs7.ContentInfoSignedData) error + func NewLegacyRequest(url string, encryptedDigest []byte) (*http.Request, error) + func ParseLegacyResponse(body []byte) (*pkcs7.ContentInfoSignedData, error) + type Accuracy struct + Micros int + Millis int + Seconds int + type CounterSignature struct + Hash crypto.Hash + SigningTime time.Time + func Verify(tst *pkcs7.ContentInfoSignedData, data []byte, certs []*x509.Certificate) (*CounterSignature, error) + func VerifyMicrosoftToken(token *pkcs7.ContentInfoSignedData, encryptedDigest []byte) (*CounterSignature, error) + func VerifyPkcs7(sig pkcs7.Signature) (*CounterSignature, error) + func (cs CounterSignature) VerifyChain(roots *x509.CertPool, extraCerts []*x509.Certificate) error + type GeneralName struct + Value asn1.RawValue + type MessageImprint struct + HashAlgorithm pkix.AlgorithmIdentifier + HashedMessage []byte + func (i MessageImprint) Verify(data []byte) error + type MicrosoftTimeStampRequest struct + Attributes struct{} + Content struct{ ... } + CounterSignatureType asn1.ObjectIdentifier + type PKIStatusInfo struct + FailInfo asn1.BitString + Status int + StatusString []string + type Request struct + EncryptedDigest []byte + Hash crypto.Hash + Legacy bool + type TSTInfo struct + Accuracy Accuracy + Extensions []pkix.Extension + GenTime asn1.RawValue + MessageImprint MessageImprint + Nonce *big.Int + Ordering bool + Policy asn1.ObjectIdentifier + SerialNumber *big.Int + TSA GeneralName + Version int + func (i *TSTInfo) SigningTime() (time.Time, error) + type TimeStampReq struct + CertReq bool + Extensions []pkix.Extension + MessageImprint MessageImprint + Nonce *big.Int + ReqPolicy asn1.ObjectIdentifier + Version int + func NewRequest(url string, hash crypto.Hash, hashValue []byte) (msg *TimeStampReq, req *http.Request, err error) + func (req *TimeStampReq) ParseResponse(body []byte) (*pkcs7.ContentInfoSignedData, error) + func (req *TimeStampReq) SanityCheckToken(psd *pkcs7.ContentInfoSignedData) error + type TimeStampResp struct + Status PKIStatusInfo + TimeStampToken pkcs7.ContentInfoSignedData + type TimestampedSignature struct + CounterSignature *CounterSignature + Raw []byte + func TimestampAndMarshal(ctx context.Context, psd *pkcs7.ContentInfoSignedData, timestamper Timestamper, ...) (*TimestampedSignature, error) + func VerifyOptionalTimestamp(sig pkcs7.Signature) (TimestampedSignature, error) + func (sig TimestampedSignature) VerifyChain(roots *x509.CertPool, extraCerts []*x509.Certificate, usage x509.ExtKeyUsage) error + type Timestamper interface + Timestamp func(ctx context.Context, req *Request) (*pkcs7.ContentInfoSignedData, error) Other modules containing this package github.com/sassoftware/relic github.com/sassoftware/relic/v7