Compare 20 bytes with SHA.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3088 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -151,7 +151,7 @@ sha_tests (void)
|
||||
sha_init (&sha);
|
||||
sha_update (&sha, (unsigned char *)t->str, strlen(t->str));
|
||||
sha_finito (&sha, res);
|
||||
if (memcmp (res, t->hash, 16) != 0) {
|
||||
if (memcmp (res, t->hash, 20) != 0) {
|
||||
printf ("SHA(\"%s\") failed\n", t->str);
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user