Versions in this module Expand all Collapse all v1 v1.0.1 May 7, 2024 Changes in this version + const DSAWithSHA224 + const ECDSAWithSHA224 + const SHA224WithRSA + var ErrMixedDexApkFile = errors.New("This file is both DEX and ZIP archive! Exploit?") + func ExtractCerts(path string, optionalZip *apkparser.ZipReader) ([][]*x509.Certificate, error) + func ExtractCertsReader(r io.ReadSeeker, optionalZip *apkparser.ZipReader) ([][]*x509.Certificate, error) + type CertInfo struct + Issuer string + Md5 string + SerialNumber *big.Int + Sha1 string + Sha256 string + SignatureAlgorithm string + Subject string + ValidFrom time.Time + ValidTo time.Time + func NewCertInfo(cert *x509.Certificate) *CertInfo + func PickBestApkCert(chains [][]*x509.Certificate) (*CertInfo, *x509.Certificate) + func (ci *CertInfo) Fill(cert *x509.Certificate) + func (ci *CertInfo) String() string + type Result struct + SignerCerts [][]*x509.Certificate + SigningBlockResult *signingblock.VerificationResult + SigningSchemeId int + func Verify(path string, optionalZip *apkparser.ZipReader) (res Result, err error) + func VerifyReader(r io.ReadSeeker, optionalZip *apkparser.ZipReader) (res Result, err error) + func VerifyWithSdkVersion(path string, optionalZip *apkparser.ZipReader, ...) (res Result, err error) + func VerifyWithSdkVersionReader(r io.ReadSeeker, optionalZip *apkparser.ZipReader, ...) (res Result, err error)