/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 27 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 …]
|
D | V2SchemeVerifier.java | 24 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/ |
D | V3SchemeSigner.java | 29 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 …]
|
D | V3SigningCertificateLineage.java | 26 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;
|
D | V3SchemeVerifier.java | 29 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/ |
D | SignatureAlgorithm.java | 25 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/ |
D | SignatureAlgorithm.java | 28 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()
|
D | ApkSigningBlockUtils.java | 112 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/ |
D | V4SchemeSigner.java | 28 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()
|
D | V4SchemeVerifier.java | 25 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/ |
D | SourceStampVerifier.java | 21 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/ |
D | SigningCertificateLineage.java | 24 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()
|
D | DefaultApkSignerEngine.java | 29 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()
|
D | ApkVerifier.java | 31 import com.android.apksig.internal.apk.SignatureAlgorithm; 644 SignatureAlgorithm signatureAlgorithm = in collectApkContentDigests() 645 SignatureAlgorithm.findById(contentDigest.getSignatureAlgorithmId()); in collectApkContentDigests()
|