Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java270 private static void consumeByChunk(DataDigester digester, DataSource source, int chunkSize) in consumeByChunk() argument
276 source.feedIntoDataDigester(digester, inputOffset, size); in consumeByChunk()
288 BufferedDigester digester = new BufferedDigester(null /* salt */, output); in generateFsVerityDigestAtLeafLevel() local
291 consumeByChunk(digester, in generateFsVerityDigestAtLeafLevel()
298 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateFsVerityDigestAtLeafLevel()
300 digester.assertEmptyBuffer(); in generateFsVerityDigestAtLeafLevel()
303 digester.fillUpLastOutputChunk(); in generateFsVerityDigestAtLeafLevel()
309 BufferedDigester digester = new BufferedDigester(salt, output); in generateApkVerityDigestAtLeafLevel() local
312 consumeByChunk(digester, in generateApkVerityDigestAtLeafLevel()
320 consumeByChunk(digester, in generateApkVerityDigestAtLeafLevel()
[all …]
DApkSigningBlockUtils.java235 DataDigester digester = new MultipleDigestDataDigester(mds); in computeContentDigestsPer1MbChunk() local
247 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/packages/StatementService/src/com/android/statementservice/retriever/
DUtils.java115 MessageDigest digester; in computeNormalizedSha256Fingerprint() local
117 digester = MessageDigest.getInstance("SHA-256"); in computeNormalizedSha256Fingerprint()
121 digester.update(signature); in computeNormalizedSha256Fingerprint()
122 return byteArrayToHexString(digester.digest()); in computeNormalizedSha256Fingerprint()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java539 MessageDigest digester = MessageDigest.getInstance("SHA-256"); in getClientCertificate() local
541 digester.reset(); in getClientCertificate()
542 byte[] fingerprint = digester.digest(certificate.getEncoded()); in getClientCertificate()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DCredential.java1286 MessageDigest digester = MessageDigest.getInstance("SHA-256"); in verifySha256Fingerprint() local
1288 digester.reset(); in verifySha256Fingerprint()
1289 byte[] fingerprint = digester.digest(certificate.getEncoded()); in verifySha256Fingerprint()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java542 MessageDigest digester; in getFingerprints() local
549 digester = MessageDigest.getInstance("MD5"); in getFingerprints()
558 digest = digester.digest(Base64.decode(base64_data, Base64.DEFAULT)); in getFingerprints()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java3006 MessageDigest digester; in calculatePackageSignatureDigest() local
3008 digester = MessageDigest.getInstance("SHA-256"); in calculatePackageSignatureDigest()
3012 digester.update(sig.toByteArray()); in calculatePackageSignatureDigest()
3016 digester = null; in calculatePackageSignatureDigest()
3019 digester = null; in calculatePackageSignatureDigest()
3021 return (digester == null) ? null : digester.digest(); in calculatePackageSignatureDigest()