Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 18 of 18) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSupportedSignature.java23 public final SignatureAlgorithm algorithm; field in ApkSupportedSignature
30 public ApkSupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in ApkSupportedSignature() argument
31 this.algorithm = algorithm; in ApkSupportedSignature()
DApkSigningBlockUtils.java416 chunkDigests.algorithm, in computeOneMbChunkContentDigests()
422 private final ContentDigestAlgorithm algorithm; field in ApkSigningBlockUtils.ChunkDigests
426 private ChunkDigests(ContentDigestAlgorithm algorithm, int chunkCount) { in ChunkDigests() argument
427 this.algorithm = algorithm; in ChunkDigests()
428 digestOutputSize = this.algorithm.getChunkDigestOutputSizeBytes(); in ChunkDigests()
438 return MessageDigest.getInstance(algorithm.getJcaMessageDigestAlgorithm()); in createMessageDigest()
499 "Unexpected output size of " + chunkDigest.algorithm in run()
1427 public SupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in SupportedSignature() argument
1428 super(algorithm, signature); in SupportedSignature()
DApkSigningBlockUtilsLite.java182 SignatureAlgorithm sigAlgorithm = sig.algorithm; in getSignaturesToVerify()
195 sigAlgorithm, candidate.algorithm) > 0)) { in getSignaturesToVerify()
213 (sig1, sig2) -> Integer.compare(sig1.algorithm.getId(), sig2.algorithm.getId())); in getSignaturesToVerify()
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAuthorizationList.java159 private Integer algorithm; field in AuthorizationList
204 algorithm = Asn1Utils.getIntegerFromAsn1(value); in AuthorizationList()
287 public static String algorithmToString(int algorithm) { in algorithmToString() argument
288 switch (algorithm) { in algorithmToString()
376 return algorithm; in getAlgorithm()
519 if (algorithm != null) { in toString()
520 s.append("\nAlgorithm: ").append(algorithmToString(algorithm)); in toString()
DAttestationTest.java203 private void generateKeyPair(String algorithm, KeyGenParameterSpec spec) in generateKeyPair() argument
206 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(algorithm, in generateKeyPair()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeVerifier.java243 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree() local
250 algorithm, in verifyRootHashAndTree()
259 algorithm, in verifyRootHashAndTree()
265 signerInfo.verifiedContentDigests.put(algorithm, actualDigest); in verifyRootHashAndTree()
DV4SchemeSigner.java102 final SignatureAlgorithm algorithm = iter.next(); in getSuggestedSignatureAlgorithms() local
103 if (!isSupported(algorithm.getContentDigestAlgorithm(), false)) { in getSuggestedSignatureAlgorithms()
382 private static Pair<Integer, Byte> convertToV4HashingInfo(ContentDigestAlgorithm algorithm) in convertToV4HashingInfo() argument
384 switch (algorithm) { in convertToV4HashingInfo()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java608 String digestAlgorithmOid = signerInfo.digestAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()
609 String signatureAlgorithmOid = signerInfo.signatureAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()
1212 private static String getCanonicalJcaMessageDigestAlgorithm(String algorithm) { in getCanonicalJcaMessageDigestAlgorithm() argument
1213 return UPPER_CASE_JCA_DIGEST_ALG_TO_CANONICAL.get(algorithm.toUpperCase(Locale.US)); in getCanonicalJcaMessageDigestAlgorithm()
1401 private static MessageDigest getMessageDigest(String algorithm) in getMessageDigest() argument
1403 return MessageDigest.getInstance(algorithm); in getMessageDigest()
1406 private static byte[] digest(String algorithm, byte[] data, int offset, int length) in digest() argument
1408 MessageDigest md = getMessageDigest(algorithm); in digest()
1413 private static byte[] digest(String algorithm, byte[] data) throws NoSuchAlgorithmException { in digest() argument
1414 return getMessageDigest(algorithm).digest(data); in digest()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DAlgorithmIdentifier.java49 public String algorithm; field in AlgorithmIdentifier
57 this.algorithm = algorithmOid; in AlgorithmIdentifier()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java271 signatureAlgorithms.append(supportedSignature.algorithm); in verifySourceStampSignature()
278 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in verifySourceStampSignature()
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_sign.txt53 --verity-enabled Whether to enable the verity signature algorithm for the
111 --deterministic-dsa-signing When signing with the DSA signature algorithm,
211 --ks-type Type/algorithm of KeyStore to use. By default, the default
Dhelp_lineage.txt118 --ks-type Type/algorithm of KeyStore to use. By default, the default
Dhelp_rotate.txt124 --ks-type Type/algorithm of KeyStore to use. By default, the default
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZFile.java1912 FileUseMap.PositionAlgorithm algorithm; in positionInFile() local
1916 algorithm = FileUseMap.PositionAlgorithm.FIRST_FIT; in positionInFile()
1919 algorithm = FileUseMap.PositionAlgorithm.BEST_FIT; in positionInFile()
1925 long newOffset = map.locateFree(size, localHeaderSize, alignment, algorithm); in positionInFile()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java302 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/
DDefaultApkSignerEngine.java497 for (SignatureAlgorithm algorithm : algorithms) { in getMinSdkFromV3SignatureAlgorithms()
498 int current = algorithm.getMinSdkVersion(); in getMinSdkFromV3SignatureAlgorithms()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java402 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt810 algorithm:
903 As an example of the effects of the above algorithm, consider the