Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java154 for (SignerConfig signerConfig : signerConfigs) { in generateApkSignatureSchemeV3Block()
158 signerBlock = generateSignerBlock(signerConfig, contentDigests); in generateApkSignatureSchemeV3Block()
174 SignerConfig signerConfig, in generateSignerBlock() argument
177 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock()
180 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock()
186 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
192 new ArrayList<>(signerConfig.signatureAlgorithms.size()); in generateSignerBlock()
193 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/v1/
DV1SchemeSigner.java289 for (SignerConfig signerConfig : signerConfigs) { in signManifest()
290 String signerName = signerConfig.name; in signManifest()
293 signatureBlock = generateSignatureBlock(signerConfig, sfBytes); in signManifest()
305 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in signManifest()
321 for (SignerConfig signerConfig : signerConfigs) { in getOutputEntryNames()
322 String signerName = signerConfig.name; in getOutputEntryNames()
324 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in getOutputEntryNames()
499 SignerConfig signerConfig, byte[] signatureFileBytes) in generateSignatureBlock() argument
503 List<X509Certificate> signerCerts = signerConfig.certificates; in generateSignatureBlock()
506 DigestAlgorithm digestAlgorithm = signerConfig.signatureDigestAlgorithm; in generateSignatureBlock()
[all …]
/tools/apksig/src/main/java/com/android/apksig/
DDefaultApkSignerEngine.java213 SignerConfig signerConfig = signerConfigs.get(i); in createV1SignerConfigs() local
214 List<X509Certificate> certificates = signerConfig.getCertificates(); in createV1SignerConfigs()
217 String v1SignerName = V1SchemeSigner.getSafeSignerName(signerConfig.getName()); in createV1SignerConfigs()
234 v1SignerConfig.privateKey = signerConfig.getPrivateKey(); in createV1SignerConfigs()
263 List<ApkSigningBlockUtils.SignerConfig> signerConfig = in createV2SignerConfigs() local
279 signerConfig.add( in createV2SignerConfigs()
283 return signerConfig; in createV2SignerConfigs()
363 SignerConfig signerConfig = mSignerConfigs.get(i); in createSigningBlockSignerConfigs() local
366 signerConfig, apkSigningBlockPaddingSupported, schemeId)); in createSigningBlockSignerConfigs()
372 SignerConfig signerConfig, boolean apkSigningBlockPaddingSupported, int schemeId) in createSigningBlockSignerConfig() argument
[all …]
DApkSigner.java264 for (SignerConfig signerConfig : mSignerConfigs) { in sign()
267 signerConfig.getName(), in sign()
268 signerConfig.getPrivateKey(), in sign()
269 signerConfig.getCertificates()) in sign()
/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()
188 SignerConfig signerConfig, in generateSignerBlock() argument
192 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock()
195 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock()
201 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
207 new ArrayList<>(signerConfig.signatureAlgorithms.size()); in generateSignerBlock()
208 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignerBlock()
242 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java1075 for (SignerConfig signerConfig : signerConfigs) { in computeContentDigests()
1076 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in computeContentDigests()
1185 SignerConfig signerConfig, byte[] data) in generateSignaturesOverData() argument
1188 new ArrayList<>(signerConfig.signatureAlgorithms.size()); in generateSignaturesOverData()
1189 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignaturesOverData()
1190 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignaturesOverData()
1198 signature.initSign(signerConfig.privateKey); in generateSignaturesOverData()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java307 ApkSigner.SignerConfig signerConfig = in sign() local
311 signerConfigs.add(signerConfig); in sign()
714 SigningCertificateLineage.SignerConfig signerConfig = in lineage() local
726 signerConfig); in lineage()
728 signerConfig, signerParams.getSignerCapabilitiesBuilder().build()); in lineage()
730 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()