Defined constants for algorithm compute
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 31 Jan 2007 11:16:48 +0000 (11:16 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 31 Jan 2007 11:16:48 +0000 (11:16 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@745 38d2e660-2303-0410-9eaa-f027e97ec537

algos/md2.h

index 1aa17c213fc61bf131b1c1e021441ced063ffeb9..a44c1f8d75a20ee621433cd55dfb90527ad87672 100755 (executable)
@@ -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.
  *#*
 #include <cfg/compiler.h>
 #include <appconfig.h>
 
+#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;