Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/incremental/
DV4Signature.java118 @Nullable public final byte[] hashingInfo; field in V4Signature
164 public static byte[] getSignedData(long fileSize, HashingInfo hashingInfo, in getSignedData() argument
168 hashingInfo.salt) + bytesSize(hashingInfo.rawRootHash) + bytesSize( in getSignedData()
174 buffer.putInt(hashingInfo.hashAlgorithm); in getSignedData()
175 buffer.put(hashingInfo.log2BlockSize); in getSignedData()
176 writeBytes(buffer, hashingInfo.salt); in getSignedData()
177 writeBytes(buffer, hashingInfo.rawRootHash); in getSignedData()
188 private V4Signature(int version, @Nullable byte[] hashingInfo, @Nullable byte[] signingInfo) { in V4Signature() argument
190 this.hashingInfo = hashingInfo; in V4Signature()
197 final byte[] hashingInfo = readBytes(stream, maxSize); in readFrom()
[all …]
DIncrementalStorage.java506 final V4Signature.HashingInfo hashingInfo = V4Signature.HashingInfo.fromByteArray( in validateV4Signature() local
507 signature.hashingInfo); in validateV4Signature()
511 if (hashingInfo.hashAlgorithm != V4Signature.HASHING_ALGORITHM_SHA256) { in validateV4Signature()
512 throw new IOException("Unsupported hashAlgorithm: " + hashingInfo.hashAlgorithm); in validateV4Signature()
514 if (hashingInfo.log2BlockSize != V4Signature.LOG2_BLOCK_SIZE_4096_BYTES) { in validateV4Signature()
515 throw new IOException("Unsupported log2BlockSize: " + hashingInfo.log2BlockSize); in validateV4Signature()
517 if (hashingInfo.salt != null && hashingInfo.salt.length > 0) { in validateV4Signature()
518 throw new IOException("Unsupported salt: " + hashingInfo.salt); in validateV4Signature()
520 if (hashingInfo.rawRootHash.length != INCFS_MAX_HASH_SIZE) { in validateV4Signature()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV4Verifier.java69 final V4Signature.HashingInfo hashingInfo; in extractCertificates() local
79 hashingInfo = V4Signature.HashingInfo.fromByteArray(signature.hashingInfo); in extractCertificates()
86 final byte[] signedData = V4Signature.getSignedData(apk.length(), hashingInfo, in extractCertificates()
92 contentDigests.put(convertToContentDigestType(hashingInfo.hashAlgorithm), in extractCertificates()
93 hashingInfo.rawRootHash); in extractCertificates()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java1060 if (signature.hashingInfo == null) { in getRootHash()
1064 HashingInfo.fromByteArray(signature.hashingInfo); in getRootHash()