Home
last modified time | relevance | path

Searched refs:digester (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java274 private static void consumeByChunk(DataDigester digester, DataSource source, int chunkSize) in consumeByChunk() argument
280 source.feedIntoDataDigester(digester, inputOffset, size); in consumeByChunk()
293 BufferedDigester digester = new BufferedDigester(salt, output); in generateFsVerityDigestAtLeafLevel() local
296 consumeByChunk(digester, in generateFsVerityDigestAtLeafLevel()
303 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateFsVerityDigestAtLeafLevel()
305 digester.assertEmptyBuffer(); in generateFsVerityDigestAtLeafLevel()
308 digester.fillUpLastOutputChunk(); in generateFsVerityDigestAtLeafLevel()
314 BufferedDigester digester = new BufferedDigester(salt, output); in generateApkVerityDigestAtLeafLevel() local
317 consumeByChunk(digester, in generateApkVerityDigestAtLeafLevel()
325 consumeByChunk(digester, in generateApkVerityDigestAtLeafLevel()
[all …]
DApkSigningBlockUtils.java272 DataDigester digester = new MultipleDigestDataDigester(mds); in computeContentDigestsPer1MbChunk() local
284 input.feedIntoDataDigester(digester, inputOffset, chunkSize); in computeContentDigestsPer1MbChunk()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DDigestUtils.java45 MessageDigest digester = MessageDigest.getInstance("SHA256"); in getSha256Hash() local
50 digester.update(buf, 0, bytesRead); in getSha256Hash()
52 return digester.digest(); in getSha256Hash()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java1404 MessageDigest digester; in getFingerprints() local
1411 digester = MessageDigest.getInstance("MD5"); in getFingerprints()
1420 digest = digester.digest(Base64.decode(base64_data, Base64.DEFAULT)); in getFingerprints()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java3114 MessageDigest digester; in calculatePackageSignatureDigest() local
3116 digester = MessageDigest.getInstance("SHA-256"); in calculatePackageSignatureDigest()
3120 digester.update(sig.toByteArray()); in calculatePackageSignatureDigest()
3124 digester = null; in calculatePackageSignatureDigest()
3127 digester = null; in calculatePackageSignatureDigest()
3129 return (digester == null) ? null : digester.digest(); in calculatePackageSignatureDigest()