Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java121 Pair<V4Signature, byte[]> pair = generateV4Signature(apkContent, signerConfig); in generateV4Signature()
124 V4Signature.writeBytes(output, pair.getSecond()); in generateV4Signature()
132 public static Pair<V4Signature, byte[]> generateV4Signature( in generateV4Signature()
158 final V4Signature.HashingInfo hashingInfo = new V4Signature.HashingInfo( in generateV4Signature()
163 final V4Signature signature; in generateV4Signature()
174 private static V4Signature.SigningInfo generateSigningInfo( in generateSigningInfo()
176 V4Signature.HashingInfo hashingInfo, in generateSigningInfo()
193 … final V4Signature.SigningInfo signingInfoNoSignature = new V4Signature.SigningInfo(apkDigest, in generateSigningInfo()
196 final byte[] data = V4Signature.getSignedData(fileSize, hashingInfo, in generateSigningInfo()
209 return new V4Signature.SigningInfo(apkDigest, in generateSigningInfo()
[all …]
DV4SchemeVerifier.java70 final V4Signature signature; in verify()
73 signature = V4Signature.readFrom(input); in verify()
74 tree = V4Signature.readBytes(input); in verify()
86 if (signature.version != V4Signature.CURRENT_VERSION) { in verify()
88 V4Signature.CURRENT_VERSION); in verify()
91 V4Signature.HashingInfo hashingInfo = V4Signature.HashingInfo.fromByteArray( in verify()
94 V4Signature.SigningInfos signingInfos = V4Signature.SigningInfos.fromByteArray( in verify()
101 V4Signature.SigningInfo signingInfo = signingInfos.signingInfo; in verify()
102 final byte[] signedData = V4Signature.getSignedData(apk.size(), hashingInfo, in verify()
112 for (V4Signature.SigningInfoBlock signingInfoBlock : signingInfos.signingInfoBlocks) { in verify()
[all …]
DV4Signature.java28 public class V4Signature { class
201 V4Signature(int version, byte[] hashingInfo, byte[] signingInfos) { in V4Signature() method in V4Signature
207 static V4Signature readFrom(InputStream stream) throws IOException { in readFrom()
214 return new V4Signature(version, hashingInfo, signingInfo); in readFrom()
/tools/apksig/src/main/java/com/android/apksig/
DDefaultApkSignerEngine.java42 import com.android.apksig.internal.apk.v4.V4Signature;
1198 Pair<V4Signature, byte[]> pair = in produceV4Signature()