Add first md2 skel.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 30 Jan 2007 15:53:26 +0000 (15:53 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 30 Jan 2007 15:53:26 +0000 (15:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@742 38d2e660-2303-0410-9eaa-f027e97ec537

algos/md2.c [new file with mode: 0755]
algos/md2.h [new file with mode: 0755]

diff --git a/algos/md2.c b/algos/md2.c
new file mode 100755 (executable)
index 0000000..2179bb6
--- /dev/null
@@ -0,0 +1,33 @@
+/**
+ * \file
+ * <!--
+ * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
+ * This file is part of DevLib - See README.devlib for information.
+ * -->
+ *
+ * \brief MD2 Message-Digest algorithm.
+ *
+ * \version $Id$
+ * \author Daniele Basile <asterix@develer.com>
+ */
+
+/*#*
+ *#* $Log$
+ *#* Revision 1.1  2007/01/30 15:53:26  batt
+ *#* Add first md2 skel.
+ *#*
+ *#*/
+
+
+void md2_init()
+{
+}
+
+void md2_update()
+{
+}
+
+void md2_end()
+{
+}
+
diff --git a/algos/md2.h b/algos/md2.h
new file mode 100755 (executable)
index 0000000..f47ca78
--- /dev/null
@@ -0,0 +1,39 @@
+/**
+ * \file
+ * <!--
+ * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
+ * This file is part of DevLib - See README.devlib for information.
+ * -->
+ *
+ * \brief MD2 Message-Digest algorithm.
+ *
+ * \version $Id$
+ * \author Daniele Basile <asterix@develer.com>
+ */
+
+/*#*
+ *#* $Log$
+ *#* Revision 1.1  2007/01/30 15:53:26  batt
+ *#* Add first md2 skel.
+ *#*
+ *#*/
+
+#ifndef ALGOS_MD2_H
+#define ALGOS_MD2_H
+
+#include <cfg/compiler.h>
+#include <appconfig.h>
+
+/**
+ * Context for MD2 computation.
+ */
+typedef struct Md2Context
+{
+       uint8_t buffer[CONFIG_MD2_BLOBK_LEN];   ///< Input buffer.
+       uint8_t state[CONFIG_MD2_BLOBK_LEN];    ///< Current state buffer.
+       uint8_t checksum[CONFIG_MD2_BLOBK_LEN]; ///< Checksum.
+       size_t counter;                         ///< Counter of remaining bytes.
+} Md2Context;
+
+
+#endif /* ALGOS_MD2_H */