From 06db9a2922f9eb0881c2d5faf8e253cb8c871337 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 31 Jan 2007 11:16:48 +0000 Subject: [PATCH] Defined constants for algorithm compute git-svn-id: https://src.develer.com/svnoss/bertos/trunk@745 38d2e660-2303-0410-9eaa-f027e97ec537 --- algos/md2.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/algos/md2.h b/algos/md2.h index 1aa17c21..a44c1f8d 100755 --- a/algos/md2.h +++ b/algos/md2.h @@ -21,6 +21,9 @@ /*#* *#* $Log$ + *#* Revision 1.3 2007/01/31 11:16:48 asterix + *#* Defined constants for algorithm compute + *#* *#* Revision 1.2 2007/01/30 17:31:44 asterix *#* Add function prototypes. *#* @@ -35,14 +38,17 @@ #include #include +#define COMPUTE_ARRAY_LEN 48 ///< Lenght of compute array. +#define NUM_COMPUTE_ROUNDS 18 ///< Number of compute rounds. + /** * 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. + uint8_t buffer[CONFIG_MD2_BLOCK_LEN]; ///< Input buffer. + uint8_t state[CONFIG_MD2_BLOCK_LEN]; ///< Current state buffer. + uint8_t checksum[CONFIG_MD2_BLOCK_LEN]; ///< Checksum. size_t counter; ///< Counter of remaining bytes. } Md2Context; -- 2.25.1