Home
last modified time | relevance | path

Searched refs:SignatureAlgorithm (Results 1 – 14 of 14) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java27 import com.android.apksig.internal.apk.SignatureAlgorithm;
87 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms(PublicKey signingKey, in getSuggestedSignatureAlgorithms()
99 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
100 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
102 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
108 return Collections.singletonList(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA512); in getSuggestedSignatureAlgorithms()
112 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
113 algorithms.add(SignatureAlgorithm.DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
115 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
123 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
[all …]
DV2SchemeVerifier.java24 import com.android.apksig.internal.apk.SignatureAlgorithm;
273 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner()
301 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java29 import com.android.apksig.internal.apk.SignatureAlgorithm;
75 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms(PublicKey signingKey, in getSuggestedSignatureAlgorithms()
87 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
88 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
90 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
96 return Collections.singletonList(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA512); in getSuggestedSignatureAlgorithms()
100 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
101 algorithms.add(SignatureAlgorithm.DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
103 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
111 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
[all …]
DV3SigningCertificateLineage.java26 import com.android.apksig.internal.apk.SignatureAlgorithm;
112 SignatureAlgorithm sigAlgorithm = SignatureAlgorithm.findById(lastSigAlgorithmId); in readSigningCertificateLineage()
152 lastCert, SignatureAlgorithm.findById(signedSigAlgorithm), in readSigningCertificateLineage()
153 SignatureAlgorithm.findById(sigAlgorithmId), signature, flags)); in readSigningCertificateLineage()
250 SignatureAlgorithm parentSigAlgorithm, in SigningCertificateNode()
251 SignatureAlgorithm sigAlgorithm, in SigningCertificateNode()
286 public final SignatureAlgorithm parentSigAlgorithm;
292 public SignatureAlgorithm sigAlgorithm;
DV3SchemeVerifier.java29 import com.android.apksig.internal.apk.SignatureAlgorithm;
319 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner()
349 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSignatureAlgorithm.java25 public enum SignatureAlgorithm { enum
56 SignatureAlgorithm( in SignatureAlgorithm() method in SignatureAlgorithm
74 public static SignatureAlgorithm fromKeyAlgorithm(@Nonnull String keyAlgorithm, in fromKeyAlgorithm()
76 for (SignatureAlgorithm alg : values()) { in fromKeyAlgorithm()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DSignatureAlgorithm.java28 public enum SignatureAlgorithm { enum
139 SignatureAlgorithm(int id, in SignatureAlgorithm() method in SignatureAlgorithm
184 public static SignatureAlgorithm findById(int id) { in findById()
185 for (SignatureAlgorithm alg : SignatureAlgorithm.values()) { in findById()
DApkSigningBlockUtils.java112 public static int compareSignatureAlgorithm(SignatureAlgorithm alg1, SignatureAlgorithm alg2) { in compareSignatureAlgorithm()
242 SignatureAlgorithm signatureAlgorithm = in verifyIntegrity()
243 SignatureAlgorithm.findById(expected.getSignatureAlgorithmId()); in verifyIntegrity()
1139 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in computeContentDigests()
1190 SignatureAlgorithm sigAlgorithm = sig.algorithm; in getSignaturesToVerify()
1255 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignaturesOverData()
1382 public List<SignatureAlgorithm> signatureAlgorithms;
1454 public Map<SignatureAlgorithm, byte[]> verifiedSignatures = new HashMap<>();
1545 public final SignatureAlgorithm algorithm;
1548 public SupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in SupportedSignature()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java28 import com.android.apksig.internal.apk.SignatureAlgorithm;
77 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms(PublicKey signingKey, in getSuggestedSignatureAlgorithms()
80 List<SignatureAlgorithm> algorithms = V3SchemeSigner.getSuggestedSignatureAlgorithms( in getSuggestedSignatureAlgorithms()
84 for (Iterator<SignatureAlgorithm> iter = algorithms.listIterator(); iter.hasNext(); ) { in getSuggestedSignatureAlgorithms()
85 final SignatureAlgorithm algorithm = iter.next(); in getSuggestedSignatureAlgorithms()
298 final SignatureAlgorithm signatureAlgorithm = in pickBestDigest()
299 SignatureAlgorithm.findById(contentDigest.getSignatureAlgorithmId()); in pickBestDigest()
DV4SchemeVerifier.java25 import com.android.apksig.internal.apk.SignatureAlgorithm;
133 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseAndVerifySignatureBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java21 import com.android.apksig.internal.apk.SignatureAlgorithm;
207 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in verifySourceStampSignature()
236 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in verifySourceStampSignature()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java24 import com.android.apksig.internal.apk.SignatureAlgorithm;
354 SignatureAlgorithm signatureAlgorithm = getSignatureAlgorithm(parent); in spawnDescendant()
377 SignatureAlgorithm sigAlgorithm = SignatureAlgorithm.findById(signatures.get(0).getFirst()); in spawnDescendant()
398 private SignatureAlgorithm getSignatureAlgorithm(SignerConfig parent) in getSignatureAlgorithm()
403 List<SignatureAlgorithm> algorithms = V3SchemeSigner.getSuggestedSignatureAlgorithms( in getSignatureAlgorithm()
DDefaultApkSignerEngine.java29 import com.android.apksig.internal.apk.SignatureAlgorithm;
386 private int getMinSdkFromV3SignatureAlgorithms(List<SignatureAlgorithm> algorithms) { in getMinSdkFromV3SignatureAlgorithms()
388 for (SignatureAlgorithm algorithm : algorithms) { in getMinSdkFromV3SignatureAlgorithms()
462 SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in createSigningBlockSignerConfig()
DApkVerifier.java31 import com.android.apksig.internal.apk.SignatureAlgorithm;
644 SignatureAlgorithm signatureAlgorithm = in collectApkContentDigests()
645 SignatureAlgorithm.findById(contentDigest.getSignatureAlgorithmId()); in collectApkContentDigests()