Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 24 of 24) 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()
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()
DApkSigningBlockUtils.java418 chunkDigests.algorithm, in computeOneMbChunkContentDigests()
424 private final ContentDigestAlgorithm algorithm; field in ApkSigningBlockUtils.ChunkDigests
428 private ChunkDigests(ContentDigestAlgorithm algorithm, int chunkCount) { in ChunkDigests() argument
429 this.algorithm = algorithm; in ChunkDigests()
430 digestOutputSize = this.algorithm.getChunkDigestOutputSizeBytes(); in ChunkDigests()
440 return MessageDigest.getInstance(algorithm.getJcaMessageDigestAlgorithm()); in createMessageDigest()
501 "Unexpected output size of " + chunkDigest.algorithm in run()
1437 public SupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in SupportedSignature() argument
1438 super(algorithm, signature); in SupportedSignature()
/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/security/remote_provisioning/hwtrust/src/cbor/
Dpublickey.rs71 .algorithm(iana_algorithm(self.kind())) in to_cose_key()
214 .protected(HeaderBuilder::new().algorithm(iana_algorithm(self.kind())).build()) in sign_cose_sign1()
254 .protected(HeaderBuilder::new().algorithm(iana::Algorithm::EdDSA).build()) in verify_cose_sign1()
265 .protected(HeaderBuilder::new().algorithm(iana::Algorithm::ES256).build()) in verify_cose_sign1_fails_with_wrong_aad()
276 .protected(HeaderBuilder::new().algorithm(iana::Algorithm::ES256).build()) in verify_cose_sign1_fails_with_wrong_algorithm()
289 .algorithm(iana::Algorithm::EdDSA) in verify_cose_sign1_with_non_crit_header()
305 .algorithm(iana::Algorithm::EdDSA) in verify_cose_sign1_fails_with_crit_header()
/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.java106 final SignatureAlgorithm algorithm = iter.next(); in getSuggestedSignatureAlgorithms() local
107 if (!isSupported(algorithm.getContentDigestAlgorithm(), false)) { in getSuggestedSignatureAlgorithms()
429 private static Pair<Integer, Byte> convertToV4HashingInfo(ContentDigestAlgorithm algorithm) in convertToV4HashingInfo() argument
431 switch (algorithm) { in convertToV4HashingInfo()
/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/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/test/java/com/android/apksig/kms/gcp/
DKeyRingClient.java130 CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm) { in createCryptoKeyForImport() argument
141 .setAlgorithm(algorithm) in createCryptoKeyForImport()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java272 signatureAlgorithms.append(supportedSignature.algorithm); in verifySourceStampSignature()
279 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in verifySourceStampSignature()
/tools/security/remote_provisioning/hwtrust/src/
Deek.rs63 .algorithm(coset::iana::Algorithm::A256GCM)
/tools/repohooks/tools/
Dspelling.txt92 algorith||algorithm
94 algoritm||algorithm
96 algorithmn||algorithm
97 algorrithm||algorithm
98 algorritm||algorithm
112 alogrithm||algorithm
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_sign.txt55 --verity-enabled Whether to enable the verity signature algorithm for the
123 --deterministic-dsa-signing When signing with the DSA signature algorithm,
235 --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/
DApkVerifier.java756 for (ContentDigestAlgorithm algorithm : intersectKeys) { in compareDigests()
757 if (!Arrays.equals(firstDigests.get(algorithm), in compareDigests()
758 secondDigests.get(algorithm))) { in compareDigests()
DDefaultApkSignerEngine.java491 for (SignatureAlgorithm algorithm : algorithms) { in getMinSdkFromV3SignatureAlgorithms()
492 int current = algorithm.getMinSdkVersion(); in getMinSdkFromV3SignatureAlgorithms()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java406 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
/tools/asuite/atest/bazel/runner/src/main/protobuf/
Dbuild_event_stream.proto485 // Digest of the file, using the build tool's configured digest algorithm,