Lines Matching defs:algorithm
58 // algorithm name
59 private final String algorithm;
81 P11KeyPairGenerator(Token token, String algorithm, long mechanism)
97 // set default key sizes and apply our own algorithm-specific limits
100 if (algorithm.equals("EC")) {
109 if (algorithm.equals("DSA")) {
121 if (algorithm.equals("RSA")) {
136 this.algorithm = algorithm;
153 if (algorithm.equals("EC")) {
171 if (algorithm.equals("DH")) {
180 } else if (algorithm.equals("RSA")) {
193 } else if (algorithm.equals("DSA")) {
202 } else if (algorithm.equals("EC")) {
227 throw new ProviderException("Unknown algorithm: " + algorithm);
238 throw new InvalidAlgorithmParameterException(algorithm +
243 throw new InvalidAlgorithmParameterException(algorithm +
248 // check our own algorithm-specific limits also
249 if (algorithm.equals("EC")) {
264 throw new InvalidAlgorithmParameterException(algorithm +
268 if (algorithm.equals("RSA")) {
284 } else if (algorithm.equals("DH")) {
336 if (algorithm.equals("RSA")) {
345 } else if (algorithm.equals("DSA")) {
367 } else if (algorithm.equals("DH")) {
395 } else if (algorithm.equals("EC")) {
406 throw new ProviderException("Unknown algorithm: " + algorithm);
419 (session, keyIDs[0], algorithm, keySize, publicKeyTemplate);
421 (session, keyIDs[1], algorithm, keySize, privateKeyTemplate);