Lines Matching defs:MAC
41 * This class computes the "Message Authentication Code" (MAC) for each
43 * provide integrity protection for SSL messages. The MAC is actually
47 * NOTE: MAC computation is the only place in the SSL protocol that the
54 final class MAC {
56 final static MAC NULL = new MAC();
58 // Value of the null MAC is fixed
61 // internal identifier for the MAC algorithm
64 // stuff defined by the kind of MAC algorithm
70 // byte array containing the additional information we MAC in each record
86 private MAC() {
94 * Set up, configured for the given SSL/TLS MAC type and version.
96 MAC(MacAlg macAlg, ProtocolVersion protocolVersion, SecretKey key)
129 * Returns the length of the MAC.
136 * Returns the hash function block length of the MAC alorithm.
143 * Returns the hash function minimal padding length of the MAC alorithm.
150 * Computes and returns the MAC for the data in this byte array.
153 * @param buf compressed record on which the MAC is computed
156 * @param isSimulated if true, simulate the the MAC computation
164 * Compute and returns the MAC for the remaining data
172 * demarcate the data to be MAC'd.
173 * @param isSimulated if true, simulate the the MAC computation