Commit | Line | Data |
---|---|---|
14d4f286 S |
1 | <?php |
2 | /** | |
3 | * An abstract class for MessageAuthenticationCode generation | |
4 | * | |
5 | * PHP version 5.3 | |
6 | * | |
7 | * @category PHPCryptLib | |
8 | * @package MAC | |
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@@ | |
13 | */ | |
14 | namespace CryptLib\MAC; | |
15 | ||
16 | /** | |
17 | * An abstract class for MessageAuthenticationCode generation | |
18 | * | |
19 | * @category PHPCryptLib | |
20 | * @package MAC | |
21 | * @author Anthony Ferrara <ircmaxell@ircmaxell.com> | |
22 | */ | |
23 | abstract class AbstractMAC implements MAC { | |
24 | ||
25 | /** | |
26 | * @var array The stored options for this instance | |
27 | */ | |
28 | protected $options = array(); | |
29 | ||
30 | /** | |
31 | * Build the instance of the MAC generator | |
32 | * | |
33 | * @param array $options The options for the instance | |
34 | * | |
35 | * @return void | |
36 | */ | |
37 | public function __construct(array $options = array()) { | |
38 | $this->options = $options + $this->options; | |
39 | } | |
40 | ||
41 | } |