add methods to decrypt return data from router
[GitHub/Stricted/speedport-hybrid-php-api.git] / CryptLib / MAC / AbstractMAC.php
diff --git a/CryptLib/MAC/AbstractMAC.php b/CryptLib/MAC/AbstractMAC.php
new file mode 100644 (file)
index 0000000..ee8189f
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+/**
+ * An abstract class for MessageAuthenticationCode generation
+ *
+ * PHP version 5.3
+ *
+ * @category   PHPCryptLib
+ * @package    MAC
+ * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
+ * @copyright  2011 The Authors
+ * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
+ * @version    Build @@version@@
+ */
+namespace CryptLib\MAC;
+
+/**
+ * An abstract class for MessageAuthenticationCode generation
+ *
+ * @category   PHPCryptLib
+ * @package    MAC
+ * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
+ */
+abstract class AbstractMAC implements MAC {
+
+    /**
+     * @var array The stored options for this instance
+     */
+    protected $options = array();
+
+    /**
+     * Build the instance of the MAC generator
+     *
+     * @param array $options The options for the instance
+     *
+     * @return void
+     */
+    public function __construct(array $options = array()) {
+        $this->options = $options + $this->options;
+    }
+
+}