From 8a9e503866fea71f11ba1d061338f410fd73b7f5 Mon Sep 17 00:00:00 2001 From: batt Date: Tue, 30 Jan 2007 15:53:26 +0000 Subject: [PATCH] Add first md2 skel. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@742 38d2e660-2303-0410-9eaa-f027e97ec537 --- algos/md2.c | 33 +++++++++++++++++++++++++++++++++ algos/md2.h | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100755 algos/md2.c create mode 100755 algos/md2.h diff --git a/algos/md2.c b/algos/md2.c new file mode 100755 index 00000000..2179bb6c --- /dev/null +++ b/algos/md2.c @@ -0,0 +1,33 @@ +/** + * \file + * + * + * \brief MD2 Message-Digest algorithm. + * + * \version $Id$ + * \author Daniele Basile + */ + +/*#* + *#* $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 index 00000000..f47ca788 --- /dev/null +++ b/algos/md2.h @@ -0,0 +1,39 @@ +/** + * \file + * + * + * \brief MD2 Message-Digest algorithm. + * + * \version $Id$ + * \author Daniele Basile + */ + +/*#* + *#* $Log$ + *#* Revision 1.1 2007/01/30 15:53:26 batt + *#* Add first md2 skel. + *#* + *#*/ + +#ifndef ALGOS_MD2_H +#define ALGOS_MD2_H + +#include +#include + +/** + * 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 */ -- 2.25.1