Home
last modified time | relevance | path

Searched refs:rootHash (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java62 public final byte[] rootHash; field in VerityBuilder.VerityResult
64 private VerityResult(ByteBuffer verityData, int merkleTreeSize, byte[] rootHash) { in VerityResult() argument
67 this.rootHash = rootHash; in VerityResult()
169 return result.rootHash; in generateApkVerity()
359 byte[] rootHash = new byte[DIGEST_SIZE_BYTES]; in generateFsVerityTreeInternal()
360 BufferedDigester digester = new BufferedDigester(salt, ByteBuffer.wrap(rootHash)); in generateFsVerityTreeInternal()
363 return rootHash; in generateFsVerityTreeInternal()
389 byte[] rootHash = new byte[DIGEST_SIZE_BYTES]; in generateVerityTreeInternal()
390 BufferedDigester digester = new BufferedDigester(salt, ByteBuffer.wrap(rootHash)); in generateVerityTreeInternal()
393 return rootHash; in generateVerityTreeInternal()
DApkSigningBlockUtils.java379 if (!Arrays.equals(expectedRootHash, verity.rootHash)) { in verifyIntegrityForVerityBasedAlgorithm()
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java662 byte[] rootHash = signer.contentDigests.getOrDefault( in extractHashFromFS()
664 if (rootHash != null) { in extractHashFromFS()
666 verityHashForFile(new File(filePath), rootHash)); in extractHashFromFS()
682 static byte[] verityHashForFile(File file, byte[] rootHash) { in verityHashForFile() argument
692 buffer.put(rootHash); // root_hash, first 32 bytes in verityHashForFile()