Home | History | Annotate | Download | only in crypto

Lines Matching defs:Mac

34  * (MAC) algorithms.
36 public class Mac implements Cloneable {
39 private static final Engine ENGINE = new Engine("Mac");
50 // Store Mac state (initialized or not initialized)
54 * Creates a new {@code Mac} instance.
61 * the name of the MAC algorithm.
63 protected Mac(MacSpi macSpi, Provider provider, String algorithm) {
71 * Returns the name of the MAC algorithm.
73 * @return the name of the MAC algorithm.
80 * Returns the provider of this {@code Mac} instance.
82 * @return the provider of this {@code Mac} instance.
89 * Creates a new {@code Mac} instance that provides the specified MAC
93 * the name of the requested MAC algorithm.
94 * @return the new {@code Mac} instance.
101 public static final Mac getInstance(String algorithm)
107 return new Mac((MacSpi) sap.spi, sap.provider, algorithm);
111 * Creates a new {@code Mac} instance that provides the specified MAC
115 * the name of the requested MAC algorithm.
118 * @return the new {@code Mac} instance.
130 public static final Mac getInstance(String algorithm, String provider)
143 * Creates a new {@code Mac} instance that provides the specified MAC
147 * the name of the requested MAC algorithm.
150 * @return the new {@code Mac} instance.
160 public static final Mac getInstance(String algorithm, Provider provider)
169 return new Mac((MacSpi) spi, provider, algorithm);
173 * Returns the length of this MAC (in bytes).
175 * @return the length of this MAC (in bytes).
182 * Initializes this {@code Mac} instance with the specified key and
206 * Initializes this {@code Mac} instance with the specified key.
230 * Updates this {@code Mac} instance with the specified byte.
235 * if this MAC is not initialized.
245 * Updates this {@code Mac} instance with the data from the specified buffer
255 * if this MAC is not initialized.
281 * if this MAC is not initialized.
293 * Updates this {@code Mac} instance with the data from the specified
300 * if this MAC is not initialized.
314 * Computes the digest of this MAC based on the data previously specified in
317 * This {@code Mac} instance is reverted to its initial state and can be
318 * used to start the next MAC computation with the same parameters or
323 * if this MAC is not initialized.
333 * Computes the digest of this MAC based on the data previously specified in
337 * This {@code Mac} instance is reverted to its initial state and can be
338 * used to start the next MAC computation with the same parameters or
351 * if this MAC is not initialized.
374 * Computes the digest of this MAC based on the data previously specified on
378 * This {@code Mac} instance is reverted to its initial state and can be
379 * used to start the next MAC computation with the same parameters or
386 * if this MAC is not initialized.
399 * Resets this {@code Mac} instance to its initial state.
401 * This {@code Mac} instance is reverted to its initial state and can be
402 * used to start the next MAC computation with the same parameters or
410 * Clones this {@code Mac} instance and the underlying implementation.
419 Mac mac = new Mac(newSpiImpl, this.provider, this.algorithm);
420 mac.isInitMac = this.isInitMac;
421 return mac;