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 + var CryptSipCreateIndirectData = "{C689AAB8-8E78-11D0-8C47-00C04FC295EE}" + var OidCatalogList = asn1.ObjectIdentifier + var OidCatalogListMember = asn1.ObjectIdentifier + var OidCatalogListMemberV2 = asn1.ObjectIdentifier + var OidCatalogMemberInfo = asn1.ObjectIdentifier + var OidCatalogMemberInfoV2 = asn1.ObjectIdentifier + var OidCatalogNameValue = asn1.ObjectIdentifier + var OidCertTrustList = asn1.ObjectIdentifier + var OidSpcCabImageData = asn1.ObjectIdentifier + var OidSpcCabPageHash = asn1.ObjectIdentifier + var OidSpcIndirectDataContent = asn1.ObjectIdentifier + var OidSpcIndividualPurpose = asn1.ObjectIdentifier + var OidSpcPageHashV1 = asn1.ObjectIdentifier + var OidSpcPageHashV2 = asn1.ObjectIdentifier + var OidSpcPeImageData = asn1.ObjectIdentifier + var OidSpcSipInfo = asn1.ObjectIdentifier + var OidSpcSpOpusInfo = asn1.ObjectIdentifier + var OidSpcStatementType = asn1.ObjectIdentifier + var SpcUUIDPageHashes = []byte + var SpcUUIDSipInfoMsi = []byte + var SpcUUIDSipInfoPs = []byte + func AllSigStyles() []string + func DigestMSI(cdf *comdoc.ComDoc, hash crypto.Hash, extended bool) (imprint, prehash []byte, err error) + func DigestMsiTar(r io.Reader, hash crypto.Hash, extended bool) ([]byte, error) + func FixPEChecksum(f *os.File) error + func InsertMSISignature(cdf *comdoc.ComDoc, pkcs, exsig []byte) error + func MsiToTar(cdf *comdoc.ComDoc, w io.Writer) error + func NewPEChecksum(peStart int) hash.Hash + func PrehashMSI(cdf *comdoc.ComDoc, hash crypto.Hash) ([]byte, error) + func SignCabImprint(ctx context.Context, digest *cabfile.CabinetDigest, ...) (*binpatch.PatchSet, *pkcs9.TimestampedSignature, error) + func SignMSIImprint(ctx context.Context, digest []byte, hash crypto.Hash, ...) (*pkcs9.TimestampedSignature, error) + func SignSip(ctx context.Context, imprint []byte, hash crypto.Hash, sipInfo SpcSipInfo, ...) (*pkcs9.TimestampedSignature, error) + type CabSignature struct + HashFunc crypto.Hash + Indirect *SpcIndirectDataContentPe + OpusInfo *SpcSpOpusInfo + PatchSet *binpatch.PatchSet + func VerifyCab(f io.ReaderAt, skipDigests bool) (*CabSignature, error) + type Catalog struct + Hash crypto.Hash + Sha1Entries []CertTrustEntry + Sha2Entries []CertTrustEntry + Version int + func NewCatalog(hash crypto.Hash) *Catalog + func (cat *Catalog) Add(indirect SpcIndirectDataContentPe) error + func (cat *Catalog) Marshal() ([]byte, error) + func (cat *Catalog) Sign(ctx context.Context, cert *certloader.Certificate, params *OpusParams) (*pkcs9.TimestampedSignature, error) + type CertTrustAttributes struct + type CertTrustEntry struct + Tag []byte + Values []CertTrustValue + type CertTrustList struct + Attributes *CertTrustAttributes + EffectiveDate time.Time + Entries []CertTrustEntry + ListIdentifier []byte + SubjectAlgorithm pkix.AlgorithmIdentifier + SubjectUsage []asn1.ObjectIdentifier + type CertTrustMemberInfoV1 struct + ClassID asn1.RawValue + Unknown1 int + type CertTrustValue struct + Attribute asn1.ObjectIdentifier + Value asn1.RawValue + type DigestInfo struct + Digest []byte + DigestAlgorithm pkix.AlgorithmIdentifier + type MSISignature struct + HashFunc crypto.Hash + Indirect *SpcIndirectDataContentMsi + OpusInfo *SpcSpOpusInfo + func VerifyMSI(f io.ReaderAt, skipDigests bool) (*MSISignature, error) + type OpusParams struct + Description string + URL string + type PEDigest struct + CertStart int64 + Hash crypto.Hash + Imprint []byte + OrigSize int64 + PageHashes []byte + func DigestPE(r io.Reader, hash crypto.Hash, doPageHash bool) (*PEDigest, error) + func (pd *PEDigest) GetIndirect() (indirect SpcIndirectDataContentPe, err error) + func (pd *PEDigest) MakePatch(sig []byte) (*binpatch.PatchSet, error) + func (pd *PEDigest) Sign(ctx context.Context, cert *certloader.Certificate, params *OpusParams) (*binpatch.PatchSet, *pkcs9.TimestampedSignature, error) + type PESignature struct + ImageHashFunc crypto.Hash + Indirect *SpcIndirectDataContentPe + OpusInfo *SpcSpOpusInfo + PageHashFunc crypto.Hash + PageHashes []byte + func VerifyPE(r io.ReadSeeker, skipDigests bool) ([]PESignature, error) + type PowershellSignature struct + HashFunc crypto.Hash + OpusInfo *SpcSpOpusInfo + func VerifyPowershell(r io.ReadSeeker, style PsSigStyle, skipDigests bool) (*PowershellSignature, error) + type PsDigest struct + HashFunc crypto.Hash + Imprint []byte + IsUtf16 bool + SigSize int64 + SigStyle PsSigStyle + TextSize int64 + func DigestPowershell(r io.Reader, style PsSigStyle, hash crypto.Hash) (*PsDigest, error) + func (pd *PsDigest) MakePatch(sig []byte) (*binpatch.PatchSet, error) + func (pd *PsDigest) Sign(ctx context.Context, cert *certloader.Certificate, params *OpusParams) (*binpatch.PatchSet, *pkcs9.TimestampedSignature, error) + type PsSigStyle int + const SigStyleC + const SigStyleHash + const SigStyleXML + func GetSigStyle(filename string) (PsSigStyle, bool) + type SpcAttributeMsiImageData struct + Type asn1.ObjectIdentifier + Value SpcSipInfo + type SpcAttributePageHashes struct + Hashes [][]byte + Type asn1.ObjectIdentifier + type SpcAttributePeImageData struct + Type asn1.ObjectIdentifier + Value SpcPeImageData + type SpcIndirectDataContentMsi struct + Data SpcAttributeMsiImageData + MessageDigest DigestInfo + type SpcIndirectDataContentPe struct + Data SpcAttributePeImageData + MessageDigest DigestInfo + type SpcLink struct + File SpcString + Moniker SpcSerializedObject + URL string + type SpcPeImageData struct + File SpcLink + Flags asn1.BitString + type SpcSerializedObject struct + ClassID []byte + SerializedData []byte + type SpcSipInfo struct + A int + B int + C int + D int + E int + F int + UUID []byte + type SpcSpOpusInfo struct + MoreInfo SpcLink + ProgramName SpcString + func GetOpusInfo(si *pkcs7.SignerInfo) (*SpcSpOpusInfo, error) + type SpcSpStatementType struct + Type asn1.ObjectIdentifier + type SpcString struct + ASCII string + Unicode []byte + func NewSpcString(value string) SpcString + func (s SpcString) String() string Other modules containing this package github.com/sassoftware/relic github.com/sassoftware/relic/v7