Lines Matching refs:tests
304 } tests[] =
357 #define ntests (sizeof (tests) / sizeof (tests[0]))
415 SHA256_Update(&ctx, tests[cnt].input, strlen(tests[cnt].input));
417 if (memcmp(tests[cnt].result, sum, 32) != 0) {
419 printf("%02X", tests[cnt].result[i]);
429 for (i = 0; tests[cnt].input[i] != '\0'; ++i)
430 SHA256_Update(&ctx, &tests[cnt].input[i], 1);
432 if (memcmp(tests[cnt].result, sum, 32) != 0) {
434 printf("%02X", tests[cnt].result[i]);
472 puts("all tests OK");