Lines Matching refs:algorithm

218      * Return an JCE cipher implementation for the specified algorithm.
234 * Return an JCA signature implementation for the specified algorithm.
235 * The algorithm string should be one of the constants defined
238 static Signature getSignature(String algorithm)
241 return Signature.getInstance(algorithm);
244 if (algorithm == SIGNATURE_SSLRSA) {
246 // special algorithm. We allow a fallback in this case because
249 if (cryptoProvider.getService("Signature", algorithm) == null) {
254 return Signature.getInstance(algorithm, "SunJSSE");
260 return Signature.getInstance(algorithm, cryptoProvider);
264 static KeyGenerator getKeyGenerator(String algorithm)
267 return KeyGenerator.getInstance(algorithm);
269 return KeyGenerator.getInstance(algorithm, cryptoProvider);
273 static KeyPairGenerator getKeyPairGenerator(String algorithm)
276 return KeyPairGenerator.getInstance(algorithm);
278 return KeyPairGenerator.getInstance(algorithm, cryptoProvider);
282 static KeyAgreement getKeyAgreement(String algorithm)
285 return KeyAgreement.getInstance(algorithm);
287 return KeyAgreement.getInstance(algorithm, cryptoProvider);
291 static Mac getMac(String algorithm)
294 return Mac.getInstance(algorithm);
296 return Mac.getInstance(algorithm, cryptoProvider);
300 static KeyFactory getKeyFactory(String algorithm)
303 return KeyFactory.getInstance(algorithm);
305 return KeyFactory.getInstance(algorithm, cryptoProvider);
341 static MessageDigest getMessageDigest(String algorithm) {
344 return MessageDigest.getInstance(algorithm);
346 return MessageDigest.getInstance(algorithm, cryptoProvider);
350 ("Algorithm " + algorithm + " not available", e);