Lines Matching defs:Mac
36 * (MAC) algorithms.
38 public class Mac implements Cloneable {
41 private static final String SERVICE = "Mac";
63 // Store Mac state (initialized or not initialized)
67 * Creates a new {@code Mac} instance.
74 * the name of the MAC algorithm.
76 protected Mac(MacSpi macSpi, Provider provider, String algorithm) {
84 * Returns the name of the MAC algorithm.
86 * @return the name of the MAC algorithm.
93 * Returns the provider of this {@code Mac} instance.
95 * @return the provider of this {@code Mac} instance.
103 * Creates a new {@code Mac} instance that provides the specified MAC
107 * the name of the requested MAC algorithm.
108 * @return the new {@code Mac} instance.
115 public static final Mac getInstance(String algorithm)
121 * Creates a new {@code Mac} instance that provides the specified MAC
125 * the name of the requested MAC algorithm.
128 * @return the new {@code Mac} instance.
140 public static final Mac getInstance(String algorithm, String provider)
153 * Creates a new {@code Mac} instance that provides the specified MAC
158 * the name of the requested MAC algorithm.
161 * @return the new {@code Mac} instance.
171 public static final Mac getInstance(String algorithm, Provider provider)
179 private static Mac getMac(String algorithm, Provider provider)
193 return new Mac(null, provider, algorithm);
275 * Returns the length of this MAC (in bytes).
277 * @return the length of this MAC (in bytes).
284 * Initializes this {@code Mac} instance with the specified key and
308 * Initializes this {@code Mac} instance with the specified key.
332 * Updates this {@code Mac} instance with the specified byte.
337 * if this MAC is not initialized.
347 * Updates this {@code Mac} instance with the data from the specified buffer
357 * if this MAC is not initialized.
383 * if this MAC is not initialized.
395 * Updates this {@code Mac} instance with the data from the specified
402 * if this MAC is not initialized.
416 * Computes the digest of this MAC based on the data previously specified in
419 * This {@code Mac} instance is reverted to its initial state and can be
420 * used to start the next MAC computation with the same parameters or
425 * if this MAC is not initialized.
435 * Computes the digest of this MAC based on the data previously specified in
439 * This {@code Mac} instance is reverted to its initial state and can be
440 * used to start the next MAC computation with the same parameters or
453 * if this MAC is not initialized.
477 * Computes the digest of this MAC based on the data previously specified on
481 * This {@code Mac} instance is reverted to its initial state and can be
482 * used to start the next MAC computation with the same parameters or
489 * if this MAC is not initialized.
503 * Resets this {@code Mac} instance to its initial state.
505 * This {@code Mac} instance is reverted to its initial state and can be
506 * used to start the next MAC computation with the same parameters or
514 * Clones this {@code Mac} instance and the underlying implementation.
527 Mac mac = new Mac(newSpiImpl, this.provider, this.algorithm);
528 mac.isInitMac = this.isInitMac;
529 return mac;