/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 28 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 …]
|
D | V2SchemeVerifier.java | 26 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/ |
D | V3SchemeSigner.java | 30 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 …]
|
D | V3SigningCertificateLineage.java | 26 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;
|
D | V3SchemeVerifier.java | 29 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/ |
D | SourceStampCertificateLineage.java | 24 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;
|
D | SourceStampVerifier.java | 29 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/ |
D | SignatureAlgorithm.java | 28 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()
|
D | ApkSigningBlockUtils.java | 114 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()
|
D | ApkSupportedSignature.java | 23 public final SignatureAlgorithm algorithm; 30 public ApkSupportedSignature(SignatureAlgorithm algorithm, byte[] signature) { in ApkSupportedSignature()
|
D | ApkSigningBlockUtilsLite.java | 182 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/ |
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/v4/ |
D | V4SchemeSigner.java | 26 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()
|
D | V4SchemeVerifier.java | 25 import com.android.apksig.internal.apk.SignatureAlgorithm; 150 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseAndVerifySignatureBlock()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | SigningCertificateLineage.java | 24 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()
|
D | SourceStampVerifier.java | 32 import com.android.apksig.internal.apk.SignatureAlgorithm; 377 SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.findById(sigAlgorithmId); in parseSigner()
|
D | DefaultApkSignerEngine.java | 32 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()
|
D | ApkVerifier.java | 35 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()
|