Home | History | Annotate | Download | only in security

Lines Matching defs:algorithm

43  * <p>A Key pair generator for a particular algorithm creates a public/private
44 * key pair that can be used with this algorithm. It also associates
45 * algorithm-specific parameters with each of the generated keys.
47 * <p>There are two ways to generate a key pair: in an algorithm-independent
48 * manner, and in an algorithm-specific manner.
52 * <li><b>Algorithm-Independent Initialization</b>
55 * algorithms (e.g., in the case of the <i>DSA</i> algorithm, the keysize
68 * algorithm-independent {@code initialize} methods, it is up to the
69 * provider what to do about the algorithm-specific parameters (if any) to be
72 * <p>If the algorithm is the <i>DSA</i> algorithm, and the keysize (modulus
81 * <li><b>Algorithm-Specific Initialization</b>
82 * <p>For situations where a set of algorithm-specific parameters already
111 * <th>Algorithm</th>
138 * Java Cryptography Architecture Standard Algorithm Name Documentation.
155 private final String algorithm;
161 * Creates a KeyPairGenerator object for the specified algorithm.
163 * @param algorithm the standard string name of the algorithm.
166 * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
167 * for information about standard algorithm names.
169 protected KeyPairGenerator(String algorithm) {
170 this.algorithm = algorithm;
174 * Returns the standard name of the algorithm for this key pair generator.
177 * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
178 * for information about standard algorithm names.
180 * @return the standard string name of the algorithm.
183 return this.algorithm;
187 String algorithm) {
193 kpg = new Delegate(spi, algorithm);
200 pdebug.println("KeyPairGenerator." + algorithm +
201 " algorithm from: " + kpg.provider.getName());
210 * key pairs for the specified algorithm.
216 * Provider that supports the specified algorithm is returned.
221 * @param algorithm the standard string name of the algorithm.
224 * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
225 * for information about standard algorithm names.
231 * specified algorithm.
235 public static KeyPairGenerator getInstance(String algorithm)
238 GetInstance.getServices("KeyPairGenerator", algorithm);
242 (algorithm + " KeyPairGenerator not available");
252 return getInstance(instance, algorithm);
254 return new Delegate(instance, t, algorithm);
267 * key pairs for the specified algorithm.
277 * @param algorithm the standard string name of the algorithm.
280 * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
281 * for information about standard algorithm names.
288 * implementation for the specified algorithm is not
299 public static KeyPairGenerator getInstance(String algorithm,
303 Providers.checkBouncyCastleDeprecation(provider, "KeyPairGenerator", algorithm);
305 KeyPairGeneratorSpi.class, algorithm, provider);
306 return getInstance(instance, algorithm);
311 * key pairs for the specified algorithm.
318 * @param algorithm the standard string name of the algorithm.
321 * Java Cryptography Architecture Standard Algorithm Name Documentation</a>
322 * for information about standard algorithm names.
329 * implementation for the specified algorithm is not available
338 public static KeyPairGenerator getInstance(String algorithm,
341 Providers.checkBouncyCastleDeprecation(provider, "KeyPairGenerator", algorithm);
343 KeyPairGeneratorSpi.class, algorithm, provider);
344 return getInstance(instance, algorithm);
371 * algorithm-specific metric, such as modulus length, specified in
386 * algorithm-specific metric, such as modulus length, specified in
485 * (algorithm-specific) values of the generated keys.
505 * (algorithm-specific) values of the generated keys.
562 // . getInstance(algorithm, provider) was used
587 Delegate(KeyPairGeneratorSpi spi, String algorithm) {
588 super(algorithm);
593 String algorithm) {
594 super(algorithm);
603 pdebug.println("KeyPairGenerator." + algorithm +
604 " algorithm from: " + provider.getName());