Home
last modified time | relevance | path

Searched refs:keyAlgorithm (Results 1 – 7 of 7) sorted by relevance

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSignatureAlgorithm.java36 @Nonnull public final String keyAlgorithm; field in SignatureAlgorithm
57 … @Nonnull String keyAlgorithm, int minSdkVersion, @Nonnull String signatureAlgorithmSuffix) { in SignatureAlgorithm()
58 this.keyAlgorithm = keyAlgorithm; in SignatureAlgorithm()
74 public static SignatureAlgorithm fromKeyAlgorithm(@Nonnull String keyAlgorithm, in fromKeyAlgorithm() argument
77 if (alg.keyAlgorithm.equalsIgnoreCase(keyAlgorithm)) { in fromKeyAlgorithm()
79 throw new NoSuchAlgorithmException("Signatures with " + keyAlgorithm in fromKeyAlgorithm()
89 throw new NoSuchAlgorithmException("Signing with " + keyAlgorithm in fromKeyAlgorithm()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DResources.java84 String keyAlgorithm = resourceName.substring(0, delimiterIndex).toUpperCase(Locale.US); in toPrivateKey() local
85 return toPrivateKey(cls, resourceName, keyAlgorithm); in toPrivateKey()
89 Class <?> cls, String resourceName, String keyAlgorithm) in toPrivateKey() argument
96 switch (keyAlgorithm.toUpperCase(Locale.US)) { in toPrivateKey()
107 throw new InvalidKeySpecException("Unsupported key algorithm: " + keyAlgorithm); in toPrivateKey()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java91 String keyAlgorithm = signingKey.getAlgorithm(); in getSuggestedSignatureAlgorithms() local
92 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
112 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
120 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
137 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSuggestedSignatureAlgorithms()
DV2SchemeVerifier.java302 String keyAlgorithm = signatureAlgorithm.getJcaKeyAlgorithm(); in parseSigner() local
306 KeyFactory.getInstance(keyAlgorithm).generatePublic( in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java116 String keyAlgorithm = signingKey.getAlgorithm(); in getSuggestedSignatureDigestAlgorithm() local
117 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureDigestAlgorithm()
123 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureDigestAlgorithm()
130 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureDigestAlgorithm()
137 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSuggestedSignatureDigestAlgorithm()
615 String keyAlgorithm = publicKey.getAlgorithm(); in getSignerInfoSignatureAlgorithm() local
628 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSignerInfoSignatureAlgorithm()
632 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSignerInfoSignatureAlgorithm()
655 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSignerInfoSignatureAlgorithm()
661 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSignerInfoSignatureAlgorithm()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java80 String keyAlgorithm = signingKey.getAlgorithm(); in getSuggestedSignatureAlgorithms() local
81 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
101 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
109 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
126 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSuggestedSignatureAlgorithms()
DV3SchemeVerifier.java350 String keyAlgorithm = signatureAlgorithm.getJcaKeyAlgorithm(); in parseSigner() local
354 KeyFactory.getInstance(keyAlgorithm).generatePublic( in parseSigner()