Home
last modified time | relevance | path

Searched refs:digestAlgorithm (Results 1 – 6 of 6) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DAlgorithmIdentifier.java65 DigestAlgorithm digestAlgorithm) { in getSignerInfoDigestAlgorithmOid() argument
66 switch (digestAlgorithm) { in getSignerInfoDigestAlgorithmOid()
72 throw new IllegalArgumentException("Unsupported digest algorithm: " + digestAlgorithm); in getSignerInfoDigestAlgorithmOid()
80 PublicKey publicKey, DigestAlgorithm digestAlgorithm) throws InvalidKeyException { in getSignerInfoSignatureAlgorithm() argument
83 switch (digestAlgorithm) { in getSignerInfoSignatureAlgorithm()
92 "Unexpected digest algorithm: " + digestAlgorithm); in getSignerInfoSignatureAlgorithm()
100 switch (digestAlgorithm) { in getSignerInfoSignatureAlgorithm()
116 "Unexpected digest algorithm: " + digestAlgorithm); in getSignerInfoSignatureAlgorithm()
DSignerInfo.java40 public AlgorithmIdentifier digestAlgorithm; field in SignerInfo
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java164 private static MessageDigest getMessageDigestInstance(DigestAlgorithm digestAlgorithm) in getMessageDigestInstance() argument
166 String jcaAlgorithm = digestAlgorithm.getJcaMessageDigestAlgorithm(); in getMessageDigestInstance()
174 public static String getJcaMessageDigestAlgorithm(DigestAlgorithm digestAlgorithm) { in getJcaMessageDigestAlgorithm() argument
175 return digestAlgorithm.getJcaMessageDigestAlgorithm(); in getJcaMessageDigestAlgorithm()
268 DigestAlgorithm digestAlgorithm, in signManifest() argument
282 generateSignatureFile(apkSigningSchemeIds, digestAlgorithm, createdBy, manifest); in signManifest()
498 DigestAlgorithm digestAlgorithm = signerConfig.signatureDigestAlgorithm; in generateSignatureBlock() local
500 getSignerInfoSignatureAlgorithm(publicKey, digestAlgorithm); in generateSignatureBlock()
537 getSignerInfoDigestAlgorithmOid(digestAlgorithm); in generateSignatureBlock()
552 private static String getEntryDigestAttributeName(DigestAlgorithm digestAlgorithm) { in getEntryDigestAttributeName() argument
[all …]
DV1SchemeVerifier.java599 String digestAlgorithmOid = signerInfo.digestAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSignatureAlgorithm.java100 public String signatureAlgorithmName(@Nonnull DigestAlgorithm digestAlgorithm) { in signatureAlgorithmName() argument
101 return digestAlgorithm.messageDigestName.replace("-", "") + signatureAlgorithmSuffix; in signatureAlgorithmName()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java441 for (ContentDigestAlgorithm digestAlgorithm : digestAlgorithms) { in computeContentDigests()
442 if (digestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA256 in computeContentDigests()
443 || digestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA512) { in computeContentDigests()
444 oneMbChunkBasedAlgorithm.add(digestAlgorithm); in computeContentDigests()
490 ContentDigestAlgorithm digestAlgorithm = digestAlgorithmsArray[i]; in computeOneMbChunkContentDigests() local
491 int digestOutputSizeBytes = digestAlgorithm.getChunkDigestOutputSizeBytes(); in computeOneMbChunkContentDigests()
499 String jcaAlgorithm = digestAlgorithm.getJcaMessageDigestAlgorithm(); in computeOneMbChunkContentDigests()
554 ContentDigestAlgorithm digestAlgorithm = digestAlgorithmsArray[i]; in computeOneMbChunkContentDigests() local
558 outputContentDigests.put(digestAlgorithm, digest); in computeOneMbChunkContentDigests()
1331 signerInfo.digestAlgorithm = digestAlgorithmId; in generatePkcs7DerEncodedMessage()