projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add MD2_DIGEST_LEN macro.
[bertos.git]
/
algos
/
md2.c
diff --git
a/algos/md2.c
b/algos/md2.c
index edd9fa8c2a54df0ce4652544302f1276a9e7ac0e..fa310b4605b9cfc72d98a927c8c85a8eb33b8625 100755
(executable)
--- a/
algos/md2.c
+++ b/
algos/md2.c
@@
-23,6
+23,9
@@
/*#*
*#* $Log$
/*#*
*#* $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.
*#*
*#* Revision 1.15 2007/02/06 15:53:34 asterix
*#* Add ROTR macro in m2d_perm, add comments, typos.
*#*
@@
-322,7
+325,7
@@
bool md2_test(void)
md2_init(&context);
md2_update(&context, test[i], strlen(test[i]));
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;
}
return false;
}