Lines Matching refs:tests
316 } tests[] =
388 #define ntests (sizeof (tests) / sizeof (tests[0]))
448 SHA512_Update(&ctx, tests[cnt].input, strlen(tests[cnt].input));
450 if (memcmp(tests[cnt].result, sum, 64) != 0) {
456 for (i = 0; tests[cnt].input[i] != '\0'; ++i)
457 SHA512_Update(&ctx, &tests[cnt].input[i], 1);
459 if (memcmp(tests[cnt].result, sum, 64) != 0) {
495 puts("all tests OK");