Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/apk/
DApkVerityBuilder.java239 private static void consumeByChunk(DataDigester digester, DataSource source, int chunkSize) in consumeByChunk() argument
245 source.feedIntoDataDigester(digester, inputOffset, size); in consumeByChunk()
258 BufferedDigester digester = new BufferedDigester(salt, output); in generateApkVerityDigestAtLeafLevel() local
261 consumeByChunk(digester, in generateApkVerityDigestAtLeafLevel()
269 consumeByChunk(digester, in generateApkVerityDigestAtLeafLevel()
279 digester.consume(alternativeCentralDirOffset); in generateApkVerityDigestAtLeafLevel()
284 consumeByChunk(digester, in generateApkVerityDigestAtLeafLevel()
292 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateApkVerityDigestAtLeafLevel()
294 digester.assertEmptyBuffer(); in generateApkVerityDigestAtLeafLevel()
297 digester.fillUpLastOutputChunk(); 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/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java296 MessageDigest digester; in getFingerprints() local
303 digester = MessageDigest.getInstance("MD5"); in getFingerprints()
312 digest = digester.digest(Base64.decode(base64_data, Base64.DEFAULT)); in getFingerprints()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java441 MessageDigest digester = MessageDigest.getInstance("SHA-256"); in getClientCertificate() local
443 digester.reset(); in getClientCertificate()
444 byte[] fingerprint = digester.digest(certificate.getEncoded()); in getClientCertificate()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DCredential.java1239 MessageDigest digester = MessageDigest.getInstance("SHA-256"); in verifySha256Fingerprint() local
1241 digester.reset(); in verifySha256Fingerprint()
1242 byte[] fingerprint = digester.digest(certificate.getEncoded()); in verifySha256Fingerprint()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java3007 MessageDigest digester; in calculatePackageSignatureDigest() local
3009 digester = MessageDigest.getInstance("SHA-256"); in calculatePackageSignatureDigest()
3013 digester.update(sig.toByteArray()); in calculatePackageSignatureDigest()
3017 digester = null; in calculatePackageSignatureDigest()
3020 digester = null; in calculatePackageSignatureDigest()
3022 return (digester == null) ? null : digester.digest(); in calculatePackageSignatureDigest()