3 * An abstract class for MessageAuthenticationCode 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 * An abstract class for MessageAuthenticationCode generation
19 * @category PHPCryptLib
21 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
23 abstract class AbstractMAC
implements MAC
{
26 * @var array The stored options for this instance
28 protected $options = array();
31 * Build the instance of the MAC generator
33 * @param array $options The options for the instance
37 public function __construct(array $options = array()) {
38 $this->options
= $options +
$this->options
;