Lines Matching refs:cnt

338 	size_t cnt;  in php_sha256_crypt_r()  local
422 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r()
425 sha256_process_bytes(alt_result, cnt, &ctx); in php_sha256_crypt_r()
429 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r()
430 if ((cnt & 1) != 0) { in php_sha256_crypt_r()
444 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r()
454 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
457 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
463 for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt) { in php_sha256_crypt_r()
473 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
476 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
480 for (cnt = 0; cnt < rounds; ++cnt) { in php_sha256_crypt_r()
485 if ((cnt & 1) != 0) { in php_sha256_crypt_r()
492 if (cnt % 3 != 0) { in php_sha256_crypt_r()
497 if (cnt % 7 != 0) { in php_sha256_crypt_r()
502 if ((cnt & 1) != 0) { in php_sha256_crypt_r()
702 int cnt, i; in main() local
708 for (cnt = 0; cnt < (int) ntests; ++cnt) { in main()
710 sha256_process_bytes(tests[cnt].input, strlen(tests[cnt].input), &ctx); in main()
712 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
713 printf("test %d run %d failed\n", cnt, 1); in main()
718 for (i = 0; tests[cnt].input[i] != '\0'; ++i) { in main()
719 sha256_process_bytes(&tests[cnt].input[i], 1, &ctx); in main()
722 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
723 printf("test %d run %d failed\n", cnt, 2); in main()
739 printf("test %d failed\n", cnt); in main()
743 for (cnt = 0; cnt < ntests2; ++cnt) { in main()
744 char *cp = php_sha256_crypt(tests2[cnt].input, tests2[cnt].salt); in main()
745 if (strcmp(cp, tests2[cnt].expected) != 0) { in main()
746 printf("test %d: expected \"%s\", got \"%s\"\n", cnt, tests2[cnt].expected, cp); in main()