Lines Matching defs:algorithm

42  * (MAC) algorithm.
91 // The name of the MAC algorithm.
92 private final String algorithm;
112 * @param algorithm the algorithm
114 protected Mac(MacSpi macSpi, Provider provider, String algorithm) {
117 this.algorithm = algorithm;
122 private Mac(Service s, Iterator<Service> t, String algorithm) {
125 this.algorithm = algorithm;
130 * Returns the algorithm name of this {@code Mac} object.
136 * @return the algorithm name of this {@code Mac} object.
139 return this.algorithm;
144 * specified MAC algorithm.
150 * Provider that supports the specified algorithm is returned.
159 * the preferred provider order for the specified algorithm. This
163 * @param algorithm the standard name of the requested MAC algorithm.
167 * for information about standard algorithm names.
172 * {@code MacSpi} implementation for the specified algorithm
174 * @throws NullPointerException if {@code algorithm} is {@code null}
178 public static final Mac getInstance(String algorithm)
180 Objects.requireNonNull(algorithm, "null algorithm name");
181 List<Service> services = GetInstance.getServices("Mac", algorithm);
189 return new Mac(s, t, algorithm);
192 ("Algorithm " + algorithm + " not available");
197 * specified MAC algorithm.
207 * @param algorithm the standard name of the requested MAC algorithm.
211 * for information about standard algorithm names.
221 * implementation for the specified algorithm is not
227 * @throws NullPointerException if {@code algorithm} is {@code null}
231 public static final Mac getInstance(String algorithm, String provider)
233 Objects.requireNonNull(algorithm, "null algorithm name");
235 ("Mac", MacSpi.class, algorithm, provider);
236 return new Mac((MacSpi)instance.impl, instance.provider, algorithm);
241 * specified MAC algorithm.
248 * @param algorithm the standard name of the requested MAC algorithm.
252 * for information about standard algorithm names.
262 * implementation for the specified algorithm is not available
265 * @throws NullPointerException if {@code algorithm} is {@code null}
269 public static final Mac getInstance(String algorithm, Provider provider)
271 Objects.requireNonNull(algorithm, "null algorithm name");
273 ("Mac", MacSpi.class, algorithm, provider);
274 return new Mac((MacSpi)instance.impl, instance.provider, algorithm);
443 pdebug.println("Mac." + algorithm + " algorithm from: " +
450 * algorithm parameters.
453 * @param params the algorithm parameters.
457 * @exception InvalidAlgorithmParameterException if the given algorithm
470 pdebug.println("Mac." + algorithm + " algorithm from: " +