f47ca788bc49e76dbb88c24dd0e366067217fd10
[bertos.git] / algos / md2.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See README.devlib for information.
6  * -->
7  *
8  * \brief MD2 Message-Digest algorithm.
9  *
10  * \version $Id$
11  * \author Daniele Basile <asterix@develer.com>
12  */
13
14 /*#*
15  *#* $Log$
16  *#* Revision 1.1  2007/01/30 15:53:26  batt
17  *#* Add first md2 skel.
18  *#*
19  *#*/
20
21 #ifndef ALGOS_MD2_H
22 #define ALGOS_MD2_H
23
24 #include <cfg/compiler.h>
25 #include <appconfig.h>
26
27 /**
28  * Context for MD2 computation.
29  */
30 typedef struct Md2Context
31 {
32         uint8_t buffer[CONFIG_MD2_BLOBK_LEN];   ///< Input buffer.
33         uint8_t state[CONFIG_MD2_BLOBK_LEN];    ///< Current state buffer.
34         uint8_t checksum[CONFIG_MD2_BLOBK_LEN]; ///< Checksum.
35         size_t counter;                         ///< Counter of remaining bytes.
36 } Md2Context;
37
38
39 #endif /* ALGOS_MD2_H */