code need some updates
This commit is contained in:
Zhi Guan
2017-02-15 14:27:41 +08:00
parent b9d27fc4e0
commit 0d7a103151
16 changed files with 5114 additions and 94 deletions

View File

@@ -221,7 +221,7 @@ int main(int argc, char **argv)
p = pt(dgst);
if (memcmp(dgstbuf, dgst, dgstlen) != 0) {
printf("error calculating SM3 on %s\n", testhex[i]);
printf("got %s instead of %s\n", p, testhex[i]);
printf("got %s instead of %s\n", p, dgsthex[i]);
} else {
printf("test %d ok\n", i+1);
}