Lines Matching defs:algorithm

58  * following standard {@code KeyAgreement} algorithm:
62 * This algorithm is described in the <a href=
92 // The name of the key agreement algorithm.
93 private final String algorithm;
110 * @param algorithm the algorithm
113 String algorithm) {
116 this.algorithm = algorithm;
120 private KeyAgreement(Service s, Iterator<Service> t, String algorithm) {
123 this.algorithm = algorithm;
128 * Returns the algorithm name of this {@code KeyAgreement} object.
134 * @return the algorithm name of this {@code KeyAgreement} object.
137 return this.algorithm;
142 * specified key agreement algorithm.
148 * Provider that supports the specified algorithm is returned.
157 * the preferred provider order for the specified algorithm. This
161 * @param algorithm the standard name of the requested key agreement
162 * algorithm.
166 * for information about standard algorithm names.
172 * specified algorithm
174 * @throws NullPointerException if {@code algorithm} is {@code null}
178 public static final KeyAgreement getInstance(String algorithm)
180 Objects.requireNonNull(algorithm, "null algorithm name");
182 GetInstance.getServices("KeyAgreement", algorithm);
190 return new KeyAgreement(s, t, algorithm);
193 ("Algorithm " + algorithm + " not available");
198 * specified key agreement algorithm.
208 * @param algorithm the standard name of the requested key agreement
209 * algorithm.
213 * for information about standard algorithm names.
223 * implementation for the specified algorithm is not
229 * @throws NullPointerException if {@code algorithm} is {@code null}
233 public static final KeyAgreement getInstance(String algorithm,
236 Objects.requireNonNull(algorithm, "null algorithm name");
238 ("KeyAgreement", KeyAgreementSpi.class, algorithm, provider);
240 instance.provider, algorithm);
245 * specified key agreement algorithm.
252 * @param algorithm the standard name of the requested key agreement
253 * algorithm.
257 * for information about standard algorithm names.
267 * implementation for the specified algorithm is not available
270 * @throws NullPointerException if {@code algorithm} is {@code null}
274 public static final KeyAgreement getInstance(String algorithm,
276 Objects.requireNonNull(algorithm, "null algorithm name");
278 ("KeyAgreement", KeyAgreementSpi.class, algorithm, provider);
280 instance.provider, algorithm);
430 * contain all the algorithm parameters required for this key agreement.
446 * has an incompatible algorithm type.
454 * randomness. The given key is required to contain all the algorithm
457 * <p> If the key agreement algorithm requires random bytes, it gets them
460 * algorithm implementation does not require any random bytes,
470 * has an incompatible algorithm type.
486 pdebug.println("KeyAgreement." + algorithm + " algorithm from: " +
493 * algorithm parameters.
510 * has an incompatible algorithm type.
526 * algorithm parameters, and source of randomness.
536 * has an incompatible algorithm type.
551 pdebug.println("KeyAgreement." + algorithm + " algorithm from: " +
588 * private information and algorithm parameters will be used for
612 * private information and algorithm parameters will be used for
635 * object of the specified algorithm.
640 * private information and algorithm parameters will be used for
643 * @param algorithm the requested secret-key algorithm
650 * algorithm is not available
652 * be used to generate a secret key of the specified algorithm (e.g.,
655 public final SecretKey generateSecret(String algorithm)
660 return spi.engineGenerateSecret(algorithm);