Home
last modified time | relevance | path

Searched refs:signerConfig (Results 1 – 9 of 9) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java151 for (SignerConfig signerConfig : signerConfigs) { in generateApkSignatureSchemeV3Block()
155 signerBlock = generateSignerBlock(signerConfig, contentDigests); in generateApkSignatureSchemeV3Block()
173 SignerConfig signerConfig, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateSignerBlock() argument
175 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock()
178 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock()
184 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
190 new ArrayList<>(signerConfig.signatureAlgorithms.size()); in generateSignerBlock()
191 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignerBlock()
205 signedData.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock()
206 signedData.maxSdkVersion = signerConfig.maxSdkVersion; in generateSignerBlock()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java168 for (SignerConfig signerConfig : signerConfigs) { in generateApkSignatureSchemeV2Block()
172 signerBlock = generateSignerBlock(signerConfig, contentDigests, v3SigningEnabled); in generateApkSignatureSchemeV2Block()
190 SignerConfig signerConfig, in generateSignerBlock() argument
194 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock()
197 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock()
203 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
209 new ArrayList<>(signerConfig.signatureAlgorithms.size()); in generateSignerBlock()
210 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignerBlock()
249 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java98 DataSource apkContent, SignerConfig signerConfig, File outputFile) in generateV4Signature() argument
100 Pair<V4Signature, byte[]> pair = generateV4Signature(apkContent, signerConfig); in generateV4Signature()
113 SignerConfig signerConfig) in generateV4Signature() argument
143 signature = generateSignature(signerConfig, hashingInfo, apkDigest, additionalData, in generateV4Signature()
153 SignerConfig signerConfig, in generateSignature() argument
158 if (signerConfig.certificates.isEmpty()) { in generateSignature()
161 if (signerConfig.certificates.size() != 1) { in generateSignature()
166 final PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignature()
168 final List<byte[]> encodedCertificates = encodeCertificates(signerConfig.certificates); in generateSignature()
179 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, data); in generateSignature()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java283 for (SignerConfig signerConfig : signerConfigs) { in signManifest()
284 String signerName = signerConfig.name; in signManifest()
287 signatureBlock = generateSignatureBlock(signerConfig, sfBytes); in signManifest()
299 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in signManifest()
315 for (SignerConfig signerConfig : signerConfigs) { in getOutputEntryNames()
316 String signerName = signerConfig.name; in getOutputEntryNames()
318 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in getOutputEntryNames()
491 SignerConfig signerConfig, byte[] signatureFileBytes) in generateSignatureBlock() argument
495 List<X509Certificate> signerCerts = signerConfig.certificates; in generateSignatureBlock()
498 DigestAlgorithm digestAlgorithm = signerConfig.signatureDigestAlgorithm; in generateSignatureBlock()
[all …]
/tools/apksig/src/main/java/com/android/apksig/
DDefaultApkSignerEngine.java229 SignerConfig signerConfig = signerConfigs.get(i); in createV1SignerConfigs() local
230 List<X509Certificate> certificates = signerConfig.getCertificates(); in createV1SignerConfigs()
233 String v1SignerName = V1SchemeSigner.getSafeSignerName(signerConfig.getName()); in createV1SignerConfigs()
251 v1SignerConfig.privateKey = signerConfig.getPrivateKey(); in createV1SignerConfigs()
281 List<ApkSigningBlockUtils.SignerConfig> signerConfig = new ArrayList<>(); in createV2SignerConfigs() local
297 signerConfig.add( in createV2SignerConfigs()
302 return signerConfig; in createV2SignerConfigs()
407 SignerConfig signerConfig = mSignerConfigs.get(i); in createSigningBlockSignerConfigs() local
410 signerConfig, apkSigningBlockPaddingSupported, schemeId)); in createSigningBlockSignerConfigs()
416 SignerConfig signerConfig, boolean apkSigningBlockPaddingSupported, int schemeId) in createSigningBlockSignerConfig() argument
[all …]
DApkSigner.java279 for (SignerConfig signerConfig : mSignerConfigs) { in sign()
282 signerConfig.getName(), in sign()
283 signerConfig.getPrivateKey(), in sign()
284 signerConfig.getCertificates()) in sign()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java311 ApkSigner.SignerConfig signerConfig = getSignerConfig(signer, passwordRetriever); in sign() local
312 if (signerConfig == null) { in sign()
315 signerConfigs.add(signerConfig); in sign()
417 ApkSigner.SignerConfig signerConfig = in getSignerConfig() local
421 return signerConfig; in getSignerConfig()
802 SigningCertificateLineage.SignerConfig signerConfig = in lineage() local
814 signerConfig); in lineage()
816 signerConfig, signerParams.getSignerCapabilitiesBuilder().build()); in lineage()
818 signerConfig); in lineage()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSigningExtension.java140 DefaultApkSignerEngine.SignerConfig signerConfig = in SigningExtension() local
144 new DefaultApkSignerEngine.Builder(ImmutableList.of(signerConfig), minSdkVersion) in SigningExtension()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java1138 for (SignerConfig signerConfig : signerConfigs) { in computeContentDigests()
1139 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in computeContentDigests()
1250 SignerConfig signerConfig, byte[] data) in generateSignaturesOverData() argument
1253 new ArrayList<>(signerConfig.signatureAlgorithms.size()); in generateSignaturesOverData()
1254 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignaturesOverData()
1255 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignaturesOverData()
1263 signature.initSign(signerConfig.privateKey); in generateSignaturesOverData()