Lines Matching refs:MAC
41 * This class computes the "Message Authentication Code" (MAC) for each
44 * MAC is actually one of several keyed hashes, as associated with the cipher
50 final class MAC extends Authenticator {
52 static final MAC TLS_NULL = new MAC(false);
54 // Value of the null MAC is fixed
57 // internal identifier for the MAC algorithm
63 MAC(boolean isDTLS) {
71 * Set up, configured for the given MAC type and version.
73 MAC(MacAlg macAlg, ProtocolVersion protocolVersion, SecretKey key)
80 // using SSL MAC computation?
100 * Returns the length of the MAC.
107 * Returns the hash function block length of the MAC alorithm.
114 * Returns the hash function minimal padding length of the MAC alorithm.
121 * Computes and returns the MAC for the data in this byte array.
124 * @param buf compressed record on which the MAC is computed
127 * @param isSimulated if true, simulate the MAC computation
129 * @return the MAC result
148 * Compute and returns the MAC for the remaining data
156 * demarcate the data to be MAC'd.
157 * @param isSimulated if true, simulate the MAC computation
161 * @return the MAC result
182 * Compute and returns the MAC for the remaining data
190 * demarcate the data to be MAC'd.
191 * @param isSimulated if true, simulate the the MAC computation
193 * @return the MAC result