Lines Matching refs:cnt
355 size_t cnt; in php_sha256_crypt_r() local
428 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r()
431 sha256_process_bytes(alt_result, cnt, &ctx); in php_sha256_crypt_r()
435 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r()
436 if ((cnt & 1) != 0) { in php_sha256_crypt_r()
450 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r()
459 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
462 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
468 for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt) { in php_sha256_crypt_r()
477 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
480 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
484 for (cnt = 0; cnt < rounds; ++cnt) { in php_sha256_crypt_r()
489 if ((cnt & 1) != 0) { in php_sha256_crypt_r()
496 if (cnt % 3 != 0) { in php_sha256_crypt_r()
501 if (cnt % 7 != 0) { in php_sha256_crypt_r()
506 if ((cnt & 1) != 0) { in php_sha256_crypt_r()
698 int cnt, i; in main() local
704 for (cnt = 0; cnt < (int) ntests; ++cnt) { in main()
706 sha256_process_bytes(tests[cnt].input, strlen(tests[cnt].input), &ctx); in main()
708 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
709 printf("test %d run %d failed\n", cnt, 1); in main()
714 for (i = 0; tests[cnt].input[i] != '\0'; ++i) { in main()
715 sha256_process_bytes(&tests[cnt].input[i], 1, &ctx); in main()
718 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
719 printf("test %d run %d failed\n", cnt, 2); in main()
735 printf("test %d failed\n", cnt); in main()
739 for (cnt = 0; cnt < ntests2; ++cnt) { in main()
740 char *cp = php_sha256_crypt(tests2[cnt].input, tests2[cnt].salt); in main()
741 if (strcmp(cp, tests2[cnt].expected) != 0) { in main()
742 printf("test %d: expected \"%s\", got \"%s\"\n", cnt, tests2[cnt].expected, cp); in main()