Home
last modified time | relevance | path

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

/build/tools/signapk/src/com/android/signapk/
DApkSignerV2.java266 for (int digestAlgorithm : digestAlgorithms) { in computeContentDigests()
267 int digestOutputSizeBytes = getContentDigestAlgorithmOutputSizeBytes(digestAlgorithm); in computeContentDigests()
273 digestsOfChunks.put(digestAlgorithm, concatenationOfChunkCountAndChunkDigests); in computeContentDigests()
285 for (int digestAlgorithm : digestAlgorithms) { in computeContentDigests()
287 getContentDigestAlgorithmJcaDigestAlgorithm(digestAlgorithm); in computeContentDigests()
303 digestsOfChunks.get(digestAlgorithm); in computeContentDigests()
305 getContentDigestAlgorithmOutputSizeBytes(digestAlgorithm); in computeContentDigests()
323 int digestAlgorithm = entry.getKey(); in computeContentDigests() local
325 String jcaAlgorithmName = getContentDigestAlgorithmJcaDigestAlgorithm(digestAlgorithm); in computeContentDigests()
332 result.put(digestAlgorithm, md.digest(concatenationOfChunkCountAndChunkDigests)); in computeContentDigests()
[all …]
DSignApk.java955 for (String digestAlgorithm : digestAlgorithms) { in createV2SignerConfigs()
958 getV2SignatureAlgorithm(keyAlgorithm, digestAlgorithm)); in createV2SignerConfigs()
972 private static int getV2SignatureAlgorithm(String keyAlgorithm, String digestAlgorithm) { in getV2SignatureAlgorithm() argument
973 if ("SHA-256".equalsIgnoreCase(digestAlgorithm)) { in getV2SignatureAlgorithm()
986 } else if ("SHA-512".equalsIgnoreCase(digestAlgorithm)) { in getV2SignatureAlgorithm()
1000 throw new IllegalArgumentException("Unsupported digest algorithm: " + digestAlgorithm); in getV2SignatureAlgorithm()