Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java245 int sigAlgorithm = signature.getInt(); in verifySigner() local
246 signaturesSigAlgorithms.add(sigAlgorithm); in verifySigner()
247 if (!isSupportedSignatureAlgorithm(sigAlgorithm)) { in verifySigner()
251 || (compareSignatureAlgorithm(sigAlgorithm, bestSigAlgorithm) > 0)) { in verifySigner()
252 bestSigAlgorithm = sigAlgorithm; in verifySigner()
309 int sigAlgorithm = digest.getInt(); in verifySigner() local
310 digestsSigAlgorithms.add(sigAlgorithm); in verifySigner()
311 if (sigAlgorithm == bestSigAlgorithm) { in verifySigner()
431 private static boolean isSupportedSignatureAlgorithm(int sigAlgorithm) { in isSupportedSignatureAlgorithm() argument
432 switch (sigAlgorithm) { in isSupportedSignatureAlgorithm()
DApkSignatureSchemeV3Verifier.java258 int sigAlgorithm = signature.getInt(); in verifySigner() local
259 signaturesSigAlgorithms.add(sigAlgorithm); in verifySigner()
260 if (!isSupportedSignatureAlgorithm(sigAlgorithm)) { in verifySigner()
264 || (compareSignatureAlgorithm(sigAlgorithm, bestSigAlgorithm) > 0)) { in verifySigner()
265 bestSigAlgorithm = sigAlgorithm; in verifySigner()
322 int sigAlgorithm = digest.getInt(); in verifySigner() local
323 digestsSigAlgorithms.add(sigAlgorithm); in verifySigner()
324 if (sigAlgorithm == bestSigAlgorithm) { in verifySigner()
467 int sigAlgorithm = level.getInt(); in verifyProofOfRotationStruct() local
499 lastSigAlgorithm = sigAlgorithm; in verifyProofOfRotationStruct()
[all …]
DApkSigningBlockUtils.java453 static int getSignatureAlgorithmContentDigestAlgorithm(int sigAlgorithm) { in getSignatureAlgorithmContentDigestAlgorithm() argument
454 switch (sigAlgorithm) { in getSignatureAlgorithmContentDigestAlgorithm()
471 + Long.toHexString(sigAlgorithm & 0xffffffff)); in getSignatureAlgorithmContentDigestAlgorithm()
501 static String getSignatureAlgorithmJcaKeyAlgorithm(int sigAlgorithm) { in getSignatureAlgorithmJcaKeyAlgorithm() argument
502 switch (sigAlgorithm) { in getSignatureAlgorithmJcaKeyAlgorithm()
519 + Long.toHexString(sigAlgorithm & 0xffffffff)); in getSignatureAlgorithmJcaKeyAlgorithm()
524 getSignatureAlgorithmJcaSignatureAlgorithm(int sigAlgorithm) { in getSignatureAlgorithmJcaSignatureAlgorithm() argument
525 switch (sigAlgorithm) { in getSignatureAlgorithmJcaSignatureAlgorithm()
552 + Long.toHexString(sigAlgorithm & 0xffffffff)); in getSignatureAlgorithmJcaSignatureAlgorithm()