Home
last modified time | relevance | path

Searched refs:signatureInfo (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/util/apk/
DApkVerityBuilder.java69 SignatureInfo signatureInfo, ByteBufferFactory bufferFactory) in generateApkVerity() argument
72 signatureInfo.centralDirOffset - signatureInfo.apkSigningBlockOffset; in generateApkVerity()
92 calculateFsveritySignatureInternal(apk, signatureInfo, tree, apkDigest, header, extensions); in generateApkVerity()
108 SignatureInfo signatureInfo) in generateFsverityRootHash() argument
116 calculateFsveritySignatureInternal(apk, signatureInfo, null, null, header, extensions); in generateFsverityRootHash()
131 RandomAccessFile apk, SignatureInfo signatureInfo, ByteBuffer treeOutput, in calculateFsveritySignatureInternal() argument
134 assertSigningBlockAlignedAndHasFullPages(signatureInfo); in calculateFsveritySignatureInternal()
136 signatureInfo.centralDirOffset - signatureInfo.apkSigningBlockOffset; in calculateFsveritySignatureInternal()
141 byte[] apkRootHash = generateApkVerityTree(apk, signatureInfo, DEFAULT_SALT, in calculateFsveritySignatureInternal()
157 generateFsverityExtensions(extensionsOutput, signatureInfo.apkSigningBlockOffset, in calculateFsveritySignatureInternal()
[all …]
DApkSigningBlockUtils.java90 SignatureInfo signatureInfo) throws SecurityException { in verifyIntegrity() argument
109 signatureInfo); in verifyIntegrity()
118 expectedDigests.get(CONTENT_DIGEST_VERITY_CHUNKED_SHA256), apk, signatureInfo); in verifyIntegrity() local
130 SignatureInfo signatureInfo) throws SecurityException { in verifyIntegrityFor1MbChunkBasedAlgorithm() argument
143 signatureInfo.apkSigningBlockOffset); in verifyIntegrityFor1MbChunkBasedAlgorithm()
146 apkFileDescriptor, signatureInfo.centralDirOffset, in verifyIntegrityFor1MbChunkBasedAlgorithm()
147 signatureInfo.eocdOffset - signatureInfo.centralDirOffset); in verifyIntegrityFor1MbChunkBasedAlgorithm()
151 ByteBuffer eocdBuf = signatureInfo.eocd.duplicate(); in verifyIntegrityFor1MbChunkBasedAlgorithm()
153 ZipUtils.setZipEocdCentralDirectoryOffset(eocdBuf, signatureInfo.apkSigningBlockOffset); in verifyIntegrityFor1MbChunkBasedAlgorithm()
304 byte[] data, long fileSize, SignatureInfo signatureInfo) throws SecurityException { in parseVerityDigestAndVerifySourceLength() argument
[all …]
DApkSignatureSchemeV2Verifier.java147 SignatureInfo signatureInfo = findSignature(apk); in verify() local
148 return verify(apk, signatureInfo, verifyIntegrity); in verify()
172 SignatureInfo signatureInfo, in verify() argument
185 signers = getLengthPrefixedSlice(signatureInfo.signatureBlock); in verify()
211 ApkSigningBlockUtils.verifyIntegrity(contentDigests, apk, signatureInfo); in verify()
218 verityDigest, apk.length(), signatureInfo); in verify()
402 SignatureInfo signatureInfo = findSignature(apk); in getVerityRootHash() local
412 SignatureInfo signatureInfo = findSignature(apk); in generateApkVerity() local
413 return ApkSigningBlockUtils.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity()
421 SignatureInfo signatureInfo = findSignature(apk); in generateFsverityRootHash() local
[all …]
DApkSignatureSchemeV3Verifier.java143 SignatureInfo signatureInfo = findSignature(apk); in verify() local
144 return verify(apk, signatureInfo, verifyIntegrity); in verify()
168 SignatureInfo signatureInfo, in verify() argument
181 signers = getLengthPrefixedSlice(signatureInfo.signatureBlock); in verify()
214 ApkSigningBlockUtils.verifyIntegrity(contentDigests, apk, signatureInfo); in verify()
220 verityDigest, apk.length(), signatureInfo); in verify()
526 SignatureInfo signatureInfo = findSignature(apk); in getVerityRootHash() local
536 SignatureInfo signatureInfo = findSignature(apk); in generateApkVerity() local
537 return ApkSigningBlockUtils.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity()
545 SignatureInfo signatureInfo = findSignature(apk); in generateFsverityRootHash() local
[all …]