Home
last modified time | relevance | path

Searched refs:sigAlgorithm (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/util/apk/
DApkSigningBlockUtils.java138 static boolean isSupportedSignatureAlgorithm(int sigAlgorithm) { in isSupportedSignatureAlgorithm() argument
139 switch (sigAlgorithm) { in isSupportedSignatureAlgorithm()
491 static int getSignatureAlgorithmContentDigestAlgorithm(int sigAlgorithm) { in getSignatureAlgorithmContentDigestAlgorithm() argument
492 switch (sigAlgorithm) { in getSignatureAlgorithmContentDigestAlgorithm()
509 + Long.toHexString(sigAlgorithm & 0xffffffff)); in getSignatureAlgorithmContentDigestAlgorithm()
539 static String getSignatureAlgorithmJcaKeyAlgorithm(int sigAlgorithm) { in getSignatureAlgorithmJcaKeyAlgorithm() argument
540 switch (sigAlgorithm) { in getSignatureAlgorithmJcaKeyAlgorithm()
557 + Long.toHexString(sigAlgorithm & 0xffffffff)); in getSignatureAlgorithmJcaKeyAlgorithm()
562 getSignatureAlgorithmJcaSignatureAlgorithm(int sigAlgorithm) { in getSignatureAlgorithmJcaSignatureAlgorithm() argument
563 switch (sigAlgorithm) { in getSignatureAlgorithmJcaSignatureAlgorithm()
[all …]
DApkSignatureSchemeV2Verifier.java239 int sigAlgorithm = signature.getInt(); in verifySigner() local
240 signaturesSigAlgorithms.add(sigAlgorithm); in verifySigner()
241 if (!isSupportedSignatureAlgorithm(sigAlgorithm)) { in verifySigner()
245 || (compareSignatureAlgorithm(sigAlgorithm, bestSigAlgorithm) > 0)) { in verifySigner()
246 bestSigAlgorithm = sigAlgorithm; in verifySigner()
303 int sigAlgorithm = digest.getInt(); in verifySigner() local
304 digestsSigAlgorithms.add(sigAlgorithm); in verifySigner()
305 if (sigAlgorithm == bestSigAlgorithm) { in verifySigner()
DApkSignatureSchemeV3Verifier.java253 int sigAlgorithm = signature.getInt(); in verifySigner() local
254 signaturesSigAlgorithms.add(sigAlgorithm); in verifySigner()
255 if (!isSupportedSignatureAlgorithm(sigAlgorithm)) { in verifySigner()
259 || (compareSignatureAlgorithm(sigAlgorithm, bestSigAlgorithm) > 0)) { in verifySigner()
260 bestSigAlgorithm = sigAlgorithm; in verifySigner()
317 int sigAlgorithm = digest.getInt(); in verifySigner() local
318 digestsSigAlgorithms.add(sigAlgorithm); in verifySigner()
319 if (sigAlgorithm == bestSigAlgorithm) { in verifySigner()
DSourceStampVerifier.java285 int sigAlgorithm = signature.getInt(); in verifySourceStampSignature() local
286 if (!isSupportedSignatureAlgorithm(sigAlgorithm)) { in verifySourceStampSignature()
290 || (compareSignatureAlgorithm(sigAlgorithm, bestSigAlgorithm) > 0)) { in verifySourceStampSignature()
291 bestSigAlgorithm = sigAlgorithm; in verifySourceStampSignature()
382 int sigAlgorithm = digest.getInt(); in getApkContentDigestsFromSignatureBlock() local
384 int digestAlgorithm = getSignatureAlgorithmContentDigestAlgorithm(sigAlgorithm); in getApkContentDigestsFromSignatureBlock()