Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java27 import com.android.apksig.internal.apk.SignatureAlgorithm;
88 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms( in getSuggestedSignatureAlgorithms()
101 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
102 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
104 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
110 return Collections.singletonList(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA512); in getSuggestedSignatureAlgorithms()
114 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
115 algorithms.add(SignatureAlgorithm.DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
117 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
125 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;
77 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms( in getSuggestedSignatureAlgorithms()
90 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
91 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
93 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
99 return Collections.singletonList(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA512); in getSuggestedSignatureAlgorithms()
103 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
104 algorithms.add(SignatureAlgorithm.DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
106 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
114 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;
318 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner()
348 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java93 public static int compareSignatureAlgorithm(SignatureAlgorithm alg1, SignatureAlgorithm alg2) { in compareSignatureAlgorithm()
223 SignatureAlgorithm signatureAlgorithm = in verifyIntegrity()
224 SignatureAlgorithm.findById(expected.getSignatureAlgorithmId()); in verifyIntegrity()
1076 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in computeContentDigests()
1127 SignatureAlgorithm sigAlgorithm = sig.algorithm; in getSignaturesToVerify()
1190 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignaturesOverData()
1253 public List<SignatureAlgorithm> signatureAlgorithms;
1311 public Map<SignatureAlgorithm, byte[]> verifiedSignatures = new HashMap<>();
1398 public final SignatureAlgorithm algorithm;
1401 public SupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in SupportedSignature()
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()
/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.java22 import com.android.apksig.internal.apk.SignatureAlgorithm;
342 private int getMinSdkFromV3SignatureAlgorithms(List<SignatureAlgorithm> algorithms) { in getMinSdkFromV3SignatureAlgorithms()
344 for (SignatureAlgorithm algorithm : algorithms) { in getMinSdkFromV3SignatureAlgorithms()
DApkVerifier.java25 import com.android.apksig.internal.apk.SignatureAlgorithm;
/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()