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:
Johan Danielsson
1997-08-24 01:51:50 +00:00
parent 99a44de5d4
commit dbfd889a1a

View File

@@ -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;
}