/*#*
*#* $Log$
+ *#* Revision 1.16 2007/02/15 13:29:49 asterix
+ *#* Add MD2_DIGEST_LEN macro.
+ *#*
*#* Revision 1.15 2007/02/06 15:53:34 asterix
*#* Add ROTR macro in m2d_perm, add comments, typos.
*#*
md2_init(&context);
md2_update(&context, test[i], strlen(test[i]));
- if(memcmp(result[i], md2_end(&context), CONFIG_MD2_BLOCK_LEN))
+ if(memcmp(result[i], md2_end(&context), MD2_DIGEST_LEN))
return false;
}
/*#*
*#* $Log$
+ *#* Revision 1.7 2007/02/15 13:29:49 asterix
+ *#* Add MD2_DIGEST_LEN macro.
+ *#*
*#* Revision 1.6 2007/02/02 18:15:31 asterix
*#* Add function MD2_test. Fix bug in md2_update function.
*#*
#define NUM_COMPUTE_ROUNDS 18 ///< Number of compute rounds.
#define COMPUTE_ARRAY_LEN CONFIG_MD2_BLOCK_LEN * 3 ///< Lenght of compute array.
-
+#define MD2_DIGEST_LEN CONFIG_MD2_BLOCK_LEN
/**
* Context for MD2 computation.
*/