Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 19 of 19) 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.java414 chunkDigests.algorithm, in computeOneMbChunkContentDigests()
420 private final ContentDigestAlgorithm algorithm; field in ApkSigningBlockUtils.ChunkDigests
424 private ChunkDigests(ContentDigestAlgorithm algorithm, int chunkCount) { in ChunkDigests() argument
425 this.algorithm = algorithm; in ChunkDigests()
426 digestOutputSize = this.algorithm.getChunkDigestOutputSizeBytes(); in ChunkDigests()
436 return MessageDigest.getInstance(algorithm.getJcaMessageDigestAlgorithm()); in createMessageDigest()
497 "Unexpected output size of " + chunkDigest.algorithm in run()
1424 public SupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in SupportedSignature() argument
1425 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.java226 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree() local
233 algorithm, in verifyRootHashAndTree()
242 algorithm, in verifyRootHashAndTree()
248 signerInfo.verifiedContentDigests.put(algorithm, actualDigest); in verifyRootHashAndTree()
DV4SchemeSigner.java85 final SignatureAlgorithm algorithm = iter.next(); in getSuggestedSignatureAlgorithms() local
86 if (!isSupported(algorithm.getContentDigestAlgorithm(), false)) { in getSuggestedSignatureAlgorithms()
344 private static Pair<Integer, Byte> convertToV4HashingInfo(ContentDigestAlgorithm algorithm) in convertToV4HashingInfo() argument
346 switch (algorithm) { in convertToV4HashingInfo()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java597 String digestAlgorithmOid = signerInfo.digestAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()
598 String signatureAlgorithmOid = signerInfo.signatureAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()
1181 private static String getCanonicalJcaMessageDigestAlgorithm(String algorithm) { in getCanonicalJcaMessageDigestAlgorithm() argument
1182 return UPPER_CASE_JCA_DIGEST_ALG_TO_CANONICAL.get(algorithm.toUpperCase(Locale.US)); in getCanonicalJcaMessageDigestAlgorithm()
1370 private static MessageDigest getMessageDigest(String algorithm) in getMessageDigest() argument
1372 return MessageDigest.getInstance(algorithm); in getMessageDigest()
1375 private static byte[] digest(String algorithm, byte[] data, int offset, int length) in digest() argument
1377 MessageDigest md = getMessageDigest(algorithm); in digest()
1382 private static byte[] digest(String algorithm, byte[] data) throws NoSuchAlgorithmException { in digest() argument
1383 return getMessageDigest(algorithm).digest(data); in digest()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DAlgorithmIdentifier.java48 public String algorithm; field in AlgorithmIdentifier
56 this.algorithm = algorithmOid; in AlgorithmIdentifier()
/tools/repohooks/tools/
Dspelling.txt76 algorith||algorithm
78 algoritm||algorithm
80 algorrithm||algorithm
81 algorritm||algorithm
94 alogrithm||algorithm
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java263 signatureAlgorithms.append(supportedSignature.algorithm); in verifySourceStampSignature()
270 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
93 --deterministic-dsa-signing When signing with the DSA signature algorithm,
193 --ks-type Type/algorithm of KeyStore to use. By default, the default
Dhelp_lineage.txt114 --ks-type Type/algorithm of KeyStore to use. By default, the default
Dhelp_rotate.txt117 --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/
DDefaultApkSignerEngine.java418 for (SignatureAlgorithm algorithm : algorithms) { in getMinSdkFromV3SignatureAlgorithms()
419 int current = algorithm.getMinSdkVersion(); in getMinSdkFromV3SignatureAlgorithms()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java297 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java346 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