Home
last modified time | relevance | path

Searched refs:digests (Results 1 – 11 of 11) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV2SourceStampVerifier.java130 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()
DV1SourceStampSigner.java64 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()
DV2SourceStampSigner.java129 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()
DV1SourceStampVerifier.java131 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/
DV3SchemeSigner.java189 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
DV3SchemeVerifier.java388 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/
DMessageDigestSink.java30 public MessageDigestSink(MessageDigest[] digests) { in MessageDigestSink() argument
31 mMessageDigests = digests; in MessageDigestSink()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java208 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
DV2SchemeVerifier.java340 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/
DDataSinks.java54 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/
DV1SchemeVerifier.java1229 private static byte[] getDigest(Collection<NamedDigest> digests, String jcaDigestAlgorithm) { in getDigest() argument
1230 for (NamedDigest digest : digests) { in getDigest()