/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V2SourceStampVerifier.java | 130 Map<Integer, byte[]> digests = new HashMap<>(); in getSignatureSchemeDigests() local 135 digests.put( in getSignatureSchemeDigests() 139 return digests; in getSignatureSchemeDigests() 144 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in getApkDigests() local 147 digests.add(Pair.of(apkContentDigest.getKey().getId(), apkContentDigest.getValue())); in getApkDigests() 149 Collections.sort(digests, Comparator.comparing(Pair::getFirst)); in getApkDigests() 150 return digests; in getApkDigests()
|
D | V1SourceStampSigner.java | 64 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in generateSourceStampBlock() local 66 digests.add(Pair.of(digest.getKey().getId(), digest.getValue())); in generateSourceStampBlock() 68 Collections.sort(digests, Comparator.comparing(Pair::getFirst)); in generateSourceStampBlock() 81 encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes(digests); in generateSourceStampBlock()
|
D | V2SourceStampSigner.java | 129 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in getSignedDigestsFor() local 131 digests.add(Pair.of(digest.getKey().getId(), digest.getValue())); in getSignedDigestsFor() 133 digests.sort(Comparator.comparing(Pair::getFirst)); in getSignedDigestsFor() 140 encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes(digests); in getSignedDigestsFor()
|
D | V1SourceStampVerifier.java | 131 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in getApkDigests() local 134 digests.add(Pair.of(apkContentDigest.getKey().getId(), apkContentDigest.getValue())); in getApkDigests() 136 Collections.sort(digests, Comparator.comparing(Pair::getFirst)); in getApkDigests() 137 return digests; in getApkDigests()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 189 List<Pair<Integer, byte[]>> digests = in generateSignerBlock() local 202 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock() 204 signedData.digests = digests; in generateSignerBlock() 252 byte[] digests = in encodeSignedData() 255 signedData.digests)); in encodeSignedData() 274 int payloadSize = digests.length + certs.length + 4 + 4 + attributes.length; in encodeSignedData() 278 result.put(digests); in encodeSignedData() 306 public List<Pair<Integer, byte[]>> digests; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData
|
D | V3SchemeVerifier.java | 388 ByteBuffer digests = getLengthPrefixedSlice(signedData); in parseSigner() local 454 while (digests.hasRemaining()) { in parseSigner() 457 ByteBuffer digest = getLengthPrefixedSlice(digests); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | MessageDigestSink.java | 30 public MessageDigestSink(MessageDigest[] digests) { in MessageDigestSink() argument 31 mMessageDigests = digests; in MessageDigestSink()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 208 List<Pair<Integer, byte[]>> digests = in generateSignerBlock() local 221 digests.add(Pair.of(signatureAlgorithm.getId(), contentDigest)); in generateSignerBlock() 223 signedData.digests = digests; in generateSignerBlock() 241 signedData.digests), in generateSignerBlock() 295 public List<Pair<Integer, byte[]>> digests; field in V2SchemeSigner.V2SignatureSchemeBlock.SignedData
|
D | V2SchemeVerifier.java | 340 ByteBuffer digests = ApkSigningBlockUtils.getLengthPrefixedSlice(signedData); in parseSigner() local 392 while (digests.hasRemaining()) { in parseSigner() 395 ByteBuffer digest = ApkSigningBlockUtils.getLengthPrefixedSlice(digests); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/util/ |
D | DataSinks.java | 54 public static DataSink asDataSink(MessageDigest... digests) { in asDataSink() argument 55 return new MessageDigestSink(digests); in asDataSink()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 1229 private static byte[] getDigest(Collection<NamedDigest> digests, String jcaDigestAlgorithm) { in getDigest() argument 1230 for (NamedDigest digest : digests) { in getDigest()
|