Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java269 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner() local
270 if (signatureAlgorithm == null) { in parseSigner()
275 new ApkSigningBlockUtils.SupportedSignature(signatureAlgorithm, sigBytes)); in parseSigner()
297 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner() local
299 signatureAlgorithm.getJcaSignatureAlgorithmAndParams().getFirst(); in parseSigner()
301 signatureAlgorithm.getJcaSignatureAlgorithmAndParams().getSecond(); in parseSigner()
302 String keyAlgorithm = signatureAlgorithm.getJcaKeyAlgorithm(); in parseSigner()
322 result.addError(Issue.V2_SIG_DID_NOT_VERIFY, signatureAlgorithm); in parseSigner()
325 result.verifiedSignatures.put(signatureAlgorithm, sigBytes); in parseSigner()
326 contentDigestsToVerify.add(signatureAlgorithm.getContentDigestAlgorithm()); in parseSigner()
[all …]
DV2SchemeSigner.java207 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignerBlock()
209 signatureAlgorithm.getContentDigestAlgorithm(); in generateSignerBlock()
213 contentDigestAlgorithm + " content digest for " + signatureAlgorithm in generateSignerBlock()
216 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java315 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner() local
316 if (signatureAlgorithm == null) { in parseSigner()
323 new ApkSigningBlockUtils.SupportedSignature(signatureAlgorithm, sigBytes)); in parseSigner()
345 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner() local
347 signatureAlgorithm.getJcaSignatureAlgorithmAndParams().getFirst(); in parseSigner()
349 signatureAlgorithm.getJcaSignatureAlgorithmAndParams().getSecond(); in parseSigner()
350 String keyAlgorithm = signatureAlgorithm.getJcaKeyAlgorithm(); in parseSigner()
370 result.addError(Issue.V3_SIG_DID_NOT_VERIFY, signatureAlgorithm); in parseSigner()
373 result.verifiedSignatures.put(signatureAlgorithm, sigBytes); in parseSigner()
374 contentDigestsToVerify.add(signatureAlgorithm.getContentDigestAlgorithm()); in parseSigner()
[all …]
DV3SchemeSigner.java192 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignerBlock()
194 signatureAlgorithm.getContentDigestAlgorithm(); in generateSignerBlock()
198 contentDigestAlgorithm + " content digest for " + signatureAlgorithm in generateSignerBlock()
201 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DSignerInfo.java50 public AlgorithmIdentifier signatureAlgorithm; field in SignerInfo
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java195 SignatureAlgorithm signatureAlgorithm = in verifyIntegrity() local
197 if (signatureAlgorithm == null) { in verifyIntegrity()
201 signatureAlgorithm.getContentDigestAlgorithm(); in verifyIntegrity()
789 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in computeContentDigests()
790 contentDigestAlgorithms.add(signatureAlgorithm.getContentDigestAlgorithm()); in computeContentDigests()
902 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignaturesOverData()
904 signatureAlgorithm.getJcaSignatureAlgorithmAndParams(); in generateSignaturesOverData()
944 signatures.add(Pair.of(signatureAlgorithm.getId(), signatureBytes)); in generateSignaturesOverData()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java233 SignatureAlgorithm signatureAlgorithm = getSignatureAlgorithm(parent); in spawnDescendant() local
236 child.getCertificate(), signatureAlgorithm.getId())); in spawnDescendant()
249 newSignerConfig.signatureAlgorithms = Collections.singletonList(signatureAlgorithm); in spawnDescendant()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java569 signerInfo.signatureAlgorithm = signatureAlgorithmId; in generateSignatureBlock()
DV1SchemeVerifier.java574 String signatureAlgorithmOid = signerInfo.signatureAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()