Searched refs:hashingInfo (Results 1 – 5 of 5) sorted by relevance
/aosp14/frameworks/base/core/java/android/os/incremental/ |
H A D | V4Signature.java | 181 @Nullable public final byte[] hashingInfo; field in V4Signature 231 hashingInfo.salt) + bytesSize(hashingInfo.rawRootHash) + bytesSize( in getSignedData() 237 buffer.putInt(hashingInfo.hashAlgorithm); in getSignedData() 238 buffer.put(hashingInfo.log2BlockSize); in getSignedData() 239 writeBytes(buffer, hashingInfo.salt); in getSignedData() 240 writeBytes(buffer, hashingInfo.rawRootHash); in getSignedData() 253 this.hashingInfo = hashingInfo; in V4Signature() 260 final byte[] hashingInfo = readBytes(stream, maxSize); in readFrom() 261 if (hashingInfo != null) { in readFrom() 262 maxSize -= hashingInfo.length; in readFrom() [all …]
|
H A D | IncrementalStorage.java | 507 final V4Signature.HashingInfo hashingInfo = V4Signature.HashingInfo.fromByteArray( in validateV4Signature() local 508 signature.hashingInfo); in validateV4Signature() 512 if (hashingInfo.hashAlgorithm != V4Signature.HASHING_ALGORITHM_SHA256) { in validateV4Signature() 513 throw new IOException("Unsupported hashAlgorithm: " + hashingInfo.hashAlgorithm); in validateV4Signature() 515 if (hashingInfo.log2BlockSize != V4Signature.LOG2_BLOCK_SIZE_4096_BYTES) { in validateV4Signature() 516 throw new IOException("Unsupported log2BlockSize: " + hashingInfo.log2BlockSize); in validateV4Signature() 518 if (hashingInfo.salt != null && hashingInfo.salt.length > 0) { in validateV4Signature() 519 throw new IOException("Unsupported salt: " + Arrays.toString(hashingInfo.salt)); in validateV4Signature() 521 if (hashingInfo.rawRootHash.length != INCFS_MAX_HASH_SIZE) { in validateV4Signature()
|
/aosp14/frameworks/base/core/java/android/util/apk/ |
H A D | ApkSignatureSchemeV4Verifier.java | 85 final V4Signature.HashingInfo hashingInfo = V4Signature.HashingInfo.fromByteArray( in extractSignature() local 86 signature.hashingInfo); in extractSignature() 89 return Pair.create(hashingInfo, signingInfos); in extractSignature() 99 public static VerifiedSigner verify(String apkFile, final V4Signature.HashingInfo hashingInfo, in verify() argument 106 final byte[] signedData = V4Signature.getSignedData(new File(apkFile).length(), hashingInfo, in verify() 112 contentDigests.put(convertToContentDigestType(hashingInfo.hashAlgorithm), in verify() 113 hashingInfo.rawRootHash); in verify()
|
H A D | ApkSignatureVerifier.java | 197 final V4Signature.HashingInfo hashingInfo = v4Pair.first; in verifyV4Signature() local 240 ApkSignatureSchemeV4Verifier.verify(apkPath, hashingInfo, signingInfos, in verifyV4Signature()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageManagerServiceUtils.java | 1150 if (signature.hashingInfo == null) { in getRootHash() 1154 HashingInfo.fromByteArray(signature.hashingInfo); in getRootHash()
|