Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java28 import com.android.apksig.internal.apk.SignatureAlgorithm;
90 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms(PublicKey signingKey, in getSuggestedSignatureAlgorithms()
103 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
104 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
106 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
112 return Collections.singletonList(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA512); in getSuggestedSignatureAlgorithms()
116 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
119 SignatureAlgorithm.DETDSA_WITH_SHA256 : in getSuggestedSignatureAlgorithms()
120 SignatureAlgorithm.DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
122 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
[all …]
DV2SchemeVerifier.java26 import com.android.apksig.internal.apk.SignatureAlgorithm;
274 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner()
302 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java30 import com.android.apksig.internal.apk.SignatureAlgorithm;
103 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms(PublicKey signingKey, in getSuggestedSignatureAlgorithms()
116 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
117 algorithms.add(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
119 algorithms.add(SignatureAlgorithm.VERITY_RSA_PKCS1_V1_5_WITH_SHA256); in getSuggestedSignatureAlgorithms()
125 return Collections.singletonList(SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA512); in getSuggestedSignatureAlgorithms()
129 List<SignatureAlgorithm> algorithms = new ArrayList<>(); in getSuggestedSignatureAlgorithms()
132 SignatureAlgorithm.DETDSA_WITH_SHA256 : in getSuggestedSignatureAlgorithms()
133 SignatureAlgorithm.DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
135 algorithms.add(SignatureAlgorithm.VERITY_DSA_WITH_SHA256); in getSuggestedSignatureAlgorithms()
[all …]
DV3SigningCertificateLineage.java26 import com.android.apksig.internal.apk.SignatureAlgorithm;
113 SignatureAlgorithm sigAlgorithm = SignatureAlgorithm.findById(lastSigAlgorithmId); in readSigningCertificateLineage()
153 lastCert, SignatureAlgorithm.findById(signedSigAlgorithm), in readSigningCertificateLineage()
154 SignatureAlgorithm.findById(sigAlgorithmId), signature, flags)); in readSigningCertificateLineage()
251 SignatureAlgorithm parentSigAlgorithm, in SigningCertificateNode()
252 SignatureAlgorithm sigAlgorithm, in SigningCertificateNode()
294 public final SignatureAlgorithm parentSigAlgorithm;
300 public SignatureAlgorithm sigAlgorithm;
DV3SchemeVerifier.java29 import com.android.apksig.internal.apk.SignatureAlgorithm;
372 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner()
402 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampCertificateLineage.java24 import com.android.apksig.internal.apk.SignatureAlgorithm;
100 SignatureAlgorithm sigAlgorithm = SignatureAlgorithm.findById(lastSigAlgorithmId); in readSigningCertificateLineage()
141 lastCert, SignatureAlgorithm.findById(signedSigAlgorithm), in readSigningCertificateLineage()
142 SignatureAlgorithm.findById(sigAlgorithmId), signature, flags)); in readSigningCertificateLineage()
166 SignatureAlgorithm parentSigAlgorithm, in SigningCertificateNode()
167 SignatureAlgorithm sigAlgorithm, in SigningCertificateNode()
215 public final SignatureAlgorithm parentSigAlgorithm;
221 public SignatureAlgorithm sigAlgorithm;
DSourceStampVerifier.java29 import com.android.apksig.internal.apk.SignatureAlgorithm;
238 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in verifySourceStampSignature()
278 SignatureAlgorithm signatureAlgorithm = signature.algorithm; in verifySourceStampSignature()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DSignatureAlgorithm.java28 public enum SignatureAlgorithm { enum
162 SignatureAlgorithm(int id, in SignatureAlgorithm() method in SignatureAlgorithm
216 public static SignatureAlgorithm findById(int id) { in findById()
217 for (SignatureAlgorithm alg : SignatureAlgorithm.values()) { in findById()
DApkSigningBlockUtils.java114 public static int compareSignatureAlgorithm(SignatureAlgorithm alg1, SignatureAlgorithm alg2) { in compareSignatureAlgorithm()
196 SignatureAlgorithm signatureAlgorithm = in verifyIntegrity()
197 SignatureAlgorithm.findById(expected.getSignatureAlgorithmId()); in verifyIntegrity()
1044 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in computeContentDigests()
1142 for (SignatureAlgorithm signatureAlgorithm : signerConfig.signatureAlgorithms) { in generateSignaturesOverData()
1269 public List<SignatureAlgorithm> signatureAlgorithms;
1336 public Map<SignatureAlgorithm, byte[]> verifiedSignatures = new HashMap<>();
1427 public SupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in SupportedSignature()
DApkSupportedSignature.java23 public final SignatureAlgorithm algorithm;
30 public ApkSupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in ApkSupportedSignature()
DApkSigningBlockUtilsLite.java182 SignatureAlgorithm sigAlgorithm = sig.algorithm; in getSignaturesToVerify()
221 public static int compareSignatureAlgorithm(SignatureAlgorithm alg1, SignatureAlgorithm alg2) { in compareSignatureAlgorithm()
/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/v4/
DV4SchemeSigner.java26 import com.android.apksig.internal.apk.SignatureAlgorithm;
93 public static List<SignatureAlgorithm> getSuggestedSignatureAlgorithms(PublicKey signingKey, in getSuggestedSignatureAlgorithms()
97 List<SignatureAlgorithm> algorithms = V3SchemeSigner.getSuggestedSignatureAlgorithms( in getSuggestedSignatureAlgorithms()
101 for (Iterator<SignatureAlgorithm> iter = algorithms.listIterator(); iter.hasNext(); ) { in getSuggestedSignatureAlgorithms()
102 final SignatureAlgorithm algorithm = iter.next(); in getSuggestedSignatureAlgorithms()
336 final SignatureAlgorithm signatureAlgorithm = in pickBestDigest()
337 SignatureAlgorithm.findById(contentDigest.getSignatureAlgorithmId()); in pickBestDigest()
DV4SchemeVerifier.java25 import com.android.apksig.internal.apk.SignatureAlgorithm;
150 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseAndVerifySignatureBlock()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java24 import com.android.apksig.internal.apk.SignatureAlgorithm;
385 SignatureAlgorithm signatureAlgorithm = getSignatureAlgorithm(parent); in spawnDescendant()
408 SignatureAlgorithm sigAlgorithm = SignatureAlgorithm.findById(signatures.get(0).getFirst()); in spawnDescendant()
429 private SignatureAlgorithm getSignatureAlgorithm(SignerConfig parent) in getSignatureAlgorithm()
434 List<SignatureAlgorithm> algorithms = V3SchemeSigner.getSuggestedSignatureAlgorithms( in getSignatureAlgorithm()
DSourceStampVerifier.java32 import com.android.apksig.internal.apk.SignatureAlgorithm;
377 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner()
DDefaultApkSignerEngine.java32 import com.android.apksig.internal.apk.SignatureAlgorithm;
495 private int getMinSdkFromV3SignatureAlgorithms(List<SignatureAlgorithm> algorithms) { in getMinSdkFromV3SignatureAlgorithms()
497 for (SignatureAlgorithm algorithm : algorithms) { in getMinSdkFromV3SignatureAlgorithms()
574 SignatureAlgorithm.RSA_PKCS1_V1_5_WITH_SHA256); in createSigningBlockSignerConfig()
DApkVerifier.java35 import com.android.apksig.internal.apk.SignatureAlgorithm;
922 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById( in getApkContentDigests()
1016 SignatureAlgorithm signatureAlgorithm = in collectApkContentDigests()
1017 SignatureAlgorithm.findById(contentDigest.getSignatureAlgorithmId()); in collectApkContentDigests()