Home
last modified time | relevance | path

Searched refs:keyAlgorithm (Results 1 – 10 of 10) 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.java95 String keyAlgorithm = resourceName.substring(0, delimiterIndex).toUpperCase(Locale.US); in toPrivateKey() local
96 return toPrivateKey(cls, resourceName, keyAlgorithm); in toPrivateKey()
100 Class <?> cls, String resourceName, String keyAlgorithm) in toPrivateKey() argument
107 switch (keyAlgorithm.toUpperCase(Locale.US)) { in toPrivateKey()
118 throw new InvalidKeySpecException("Unsupported key algorithm: " + keyAlgorithm); in toPrivateKey()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DAlgorithmIdentifier.java81 String keyAlgorithm = publicKey.getAlgorithm(); in getSignerInfoSignatureAlgorithm() local
94 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSignerInfoSignatureAlgorithm()
98 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSignerInfoSignatureAlgorithm()
119 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSignerInfoSignatureAlgorithm()
124 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSignerInfoSignatureAlgorithm()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java89 String keyAlgorithm = signingKey.getAlgorithm(); in getSuggestedSignatureAlgorithms() local
90 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
110 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
118 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
135 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSuggestedSignatureAlgorithms()
DV2SchemeVerifier.java306 String keyAlgorithm = signatureAlgorithm.getJcaKeyAlgorithm(); in parseSigner() local
310 KeyFactory.getInstance(keyAlgorithm).generatePublic( in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java77 String keyAlgorithm = signingKey.getAlgorithm(); in getSuggestedSignatureAlgorithms() local
78 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
98 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
106 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureAlgorithms()
123 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSuggestedSignatureAlgorithms()
DV3SchemeVerifier.java354 String keyAlgorithm = signatureAlgorithm.getJcaKeyAlgorithm(); in parseSigner() local
358 KeyFactory.getInstance(keyAlgorithm).generatePublic( in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java110 String keyAlgorithm = signingKey.getAlgorithm(); in getSuggestedSignatureDigestAlgorithm() local
111 if ("RSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureDigestAlgorithm()
117 } else if ("DSA".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureDigestAlgorithm()
124 } else if ("EC".equalsIgnoreCase(keyAlgorithm)) { in getSuggestedSignatureDigestAlgorithm()
131 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm); in getSuggestedSignatureDigestAlgorithm()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeVerifier.java144 String keyAlgorithm = signatureAlgorithm.getJcaKeyAlgorithm(); in parseAndVerifySignatureBlock() local
149 publicKey = KeyFactory.getInstance(keyAlgorithm).generatePublic( in parseAndVerifySignatureBlock()
/tools/apksig/src/main/java/com/android/apksig/
DDefaultApkSignerEngine.java327 String keyAlgorithm = config.certificates.get(0).getPublicKey().getAlgorithm(); in createV3SignerConfigs() local
330 + keyAlgorithm in createV3SignerConfigs()