From: asterix Date: Wed, 31 Jan 2007 13:53:36 +0000 (+0000) Subject: Define COMPUTE_ARRAY_LEN. X-Git-Tag: 1.0.0~493 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e0731ffd634b1e7136f156c2fc266cf525c90595;p=bertos.git Define COMPUTE_ARRAY_LEN. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@748 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/algos/md2.h b/algos/md2.h index a44c1f8d..b56e12dd 100755 --- a/algos/md2.h +++ b/algos/md2.h @@ -21,6 +21,9 @@ /*#* *#* $Log$ + *#* Revision 1.4 2007/01/31 13:53:36 asterix + *#* Define COMPUTE_ARRAY_LEN. + *#* *#* Revision 1.3 2007/01/31 11:16:48 asterix *#* Defined constants for algorithm compute *#* @@ -38,8 +41,8 @@ #include #include -#define COMPUTE_ARRAY_LEN 48 ///< Lenght of compute array. -#define NUM_COMPUTE_ROUNDS 18 ///< Number of compute rounds. +#define NUM_COMPUTE_ROUNDS 18 ///< Number of compute rounds. +#define COMPUTE_ARRAY_LEN CONFIG_MD2_BLOCK_LEN * 3 ///< Lenght of compute array. /** * Context for MD2 computation. @@ -50,6 +53,7 @@ typedef struct Md2Context 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; void md2_init(Md2Context *context);