Lines Matching defs:algorithm

188      * Return an JCE cipher implementation for the specified algorithm.
204 * Return an JCA signature implementation for the specified algorithm.
205 * The algorithm string should be one of the constants defined
208 static Signature getSignature(String algorithm)
211 return Signature.getInstance(algorithm);
214 if (algorithm == SIGNATURE_SSLRSA) {
216 // special algorithm. We allow a fallback in this case because
219 if (cryptoProvider.getService("Signature", algorithm) == null) {
224 return Signature.getInstance(algorithm, "SunJSSE");
230 return Signature.getInstance(algorithm, cryptoProvider);
234 static KeyGenerator getKeyGenerator(String algorithm)
237 return KeyGenerator.getInstance(algorithm);
239 return KeyGenerator.getInstance(algorithm, cryptoProvider);
243 static KeyPairGenerator getKeyPairGenerator(String algorithm)
246 return KeyPairGenerator.getInstance(algorithm);
248 return KeyPairGenerator.getInstance(algorithm, cryptoProvider);
252 static KeyAgreement getKeyAgreement(String algorithm)
255 return KeyAgreement.getInstance(algorithm);
257 return KeyAgreement.getInstance(algorithm, cryptoProvider);
261 static Mac getMac(String algorithm)
264 return Mac.getInstance(algorithm);
266 return Mac.getInstance(algorithm, cryptoProvider);
270 static KeyFactory getKeyFactory(String algorithm)
273 return KeyFactory.getInstance(algorithm);
275 return KeyFactory.getInstance(algorithm, cryptoProvider);
279 static AlgorithmParameters getAlgorithmParameters(String algorithm)
282 return AlgorithmParameters.getInstance(algorithm);
284 return AlgorithmParameters.getInstance(algorithm, cryptoProvider);
320 static MessageDigest getMessageDigest(String algorithm) {
323 return MessageDigest.getInstance(algorithm);
325 return MessageDigest.getInstance(algorithm, cryptoProvider);
329 ("Algorithm " + algorithm + " not available", e);