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.
279 * if this MAC is not initialized.
291 * Updates this {@code Mac} instance with the data from the specified
298 * if this MAC is not initialized.
312 * Computes the digest of this MAC based on the data previously specified in
315 * This {@code Mac} instance is reverted to its initial state and can be
316 * used to start the next MAC computation with the same parameters or
321 * if this MAC is not initialized.
331 * Computes the digest of this MAC based on the data previously specified in
335 * This {@code Mac} instance is reverted to its initial state and can be
336 * used to start the next MAC computation with the same parameters or
349 * if this MAC is not initialized.
372 * Computes the digest of this MAC based on the data previously specified on
376 * This {@code Mac} instance is reverted to its initial state and can be
377 * used to start the next MAC computation with the same parameters or
384 * if this MAC is not initialized.
397 * Resets this {@code Mac} instance to its initial state.
399 * This {@code Mac} instance is reverted to its initial state and can be
400 * used to start the next MAC computation with the same parameters or
408 * Clones this {@code Mac} instance and the underlying implementation.
417 Mac mac = new Mac(newSpiImpl, this.provider, this.algorithm);
418 mac.isInitMac = this.isInitMac;
419 return mac;