3 * The basic interface for MAC (Message Authentication Code) generation
7 * @category PHPCryptLib
9 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
10 * @copyright 2011 The Authors
11 * @license http://www.opensource.org/licenses/mit-license.html MIT License
12 * @version Build @@version@@
14 namespace CryptLib\MAC
;
17 * The basic interface for MAC (Message Authentication Code) generation
19 * @category PHPCryptLib
21 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
26 * Build the instance of the MAC generator
28 * @param array $options The options for the instance
32 public function __construct(array $options = array());
35 * Generate the MAC using the supplied data
37 * @param string $data The data to use to generate the MAC with
38 * @param string $key The key to generate the MAC
39 * @param int $size The size of the output to return
41 * @return string The generated MAC of the appropriate size
43 public function generate($data, $key, $size = 0);