Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java82 @Nullable SignatureInfo signatureInfo, @NonNull ByteBufferFactory bufferFactory) in generateApkVerityTree() argument
84 return generateVerityTreeInternal(apk, bufferFactory, signatureInfo); in generateApkVerityTree()
89 @NonNull ByteBufferFactory bufferFactory, @Nullable SignatureInfo signatureInfo) in generateVerityTreeInternal() argument
92 signatureInfo.centralDirOffset - signatureInfo.apkSigningBlockOffset; in generateVerityTreeInternal()
102 byte[] apkRootHash = generateVerityTreeInternal(apk, signatureInfo, DEFAULT_SALT, in generateVerityTreeInternal()
108 @NonNull SignatureInfo signatureInfo, @NonNull ByteBuffer footerOutput) in generateApkVerityFooter() argument
113 signatureInfo.centralDirOffset - signatureInfo.apkSigningBlockOffset; in generateApkVerityFooter()
114 generateApkVerityExtensions(footerOutput, signatureInfo.apkSigningBlockOffset, in generateApkVerityFooter()
115 signingBlockSize, signatureInfo.eocdOffset); in generateApkVerityFooter()
152 @NonNull ByteBuffer apkDigest, @NonNull SignatureInfo signatureInfo) in generateApkVerityRootHash() argument
[all …]
DApkSigningBlockUtils.java101 SignatureInfo signatureInfo) throws SecurityException { in verifyIntegrity() argument
120 signatureInfo); in verifyIntegrity()
129 expectedDigests.get(CONTENT_DIGEST_VERITY_CHUNKED_SHA256), apk, signatureInfo); in verifyIntegrity() local
159 SignatureInfo signatureInfo) throws SecurityException { in verifyIntegrityFor1MbChunkBasedAlgorithm() argument
169 signatureInfo); in verifyIntegrityFor1MbChunkBasedAlgorithm()
190 FileDescriptor apkFileDescriptor, SignatureInfo signatureInfo) throws DigestException { in computeContentDigestsPer1MbChunk() argument
203 DataSource.create(apkFileDescriptor, 0, signatureInfo.apkSigningBlockOffset); in computeContentDigestsPer1MbChunk()
206 apkFileDescriptor, signatureInfo.centralDirOffset, in computeContentDigestsPer1MbChunk()
207 signatureInfo.eocdOffset - signatureInfo.centralDirOffset); in computeContentDigestsPer1MbChunk()
211 ByteBuffer eocdBuf = signatureInfo.eocd.duplicate(); in computeContentDigestsPer1MbChunk()
[all …]
DApkSignatureSchemeV2Verifier.java141 SignatureInfo signatureInfo = findSignature(apk); in verify() local
142 return verify(apk, signatureInfo, verifyIntegrity); in verify()
166 SignatureInfo signatureInfo, in verify() argument
179 signers = getLengthPrefixedSlice(signatureInfo.signatureBlock); in verify()
205 ApkSigningBlockUtils.verifyIntegrity(contentDigests, apk, signatureInfo); in verify()
212 verityDigest, apk.length(), signatureInfo); in verify()
395 SignatureInfo signatureInfo = findSignature(apk); in getVerityRootHash() local
405 SignatureInfo signatureInfo = findSignature(apk); in generateApkVerity() local
406 return VerityBuilder.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity()
414 SignatureInfo signatureInfo = findSignature(apk); in generateApkVerityRootHash() local
[all …]
DApkSignatureSchemeV3Verifier.java136 SignatureInfo signatureInfo = findSignature(apk); in verify() local
137 return verify(apk, signatureInfo, verifyIntegrity); in verify()
161 SignatureInfo signatureInfo, in verify() argument
174 signers = getLengthPrefixedSlice(signatureInfo.signatureBlock); in verify()
207 ApkSigningBlockUtils.verifyIntegrity(contentDigests, apk, signatureInfo); in verify()
214 verityDigest, apk.length(), signatureInfo); in verify()
432 SignatureInfo signatureInfo = findSignature(apk); in getVerityRootHash() local
442 SignatureInfo signatureInfo = findSignature(apk); in generateApkVerity() local
443 return VerityBuilder.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity()
451 SignatureInfo signatureInfo = findSignature(apk); in generateApkVerityRootHash() local
[all …]
DSourceStampVerifier.java146 SignatureInfo signatureInfo = in verify() local
151 signatureInfo, in verify()
160 SignatureInfo signatureInfo, in verify() argument
164 ByteBuffer sourceStampBlock = signatureInfo.signatureBlock; in verify()
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java781 SignatureInfo signatureInfo = null; in calculatePartialChecksumsIfRequested() local
783 signatureInfo = ApkSignatureSchemeV3Verifier.findSignature(raf); in calculatePartialChecksumsIfRequested()
786 signatureInfo = ApkSignatureSchemeV2Verifier.findSignature(raf); in calculatePartialChecksumsIfRequested()
790 if (signatureInfo == null) { in calculatePartialChecksumsIfRequested()
798 raf.getFD(), signatureInfo); in calculatePartialChecksumsIfRequested()