Lines Matching refs:cnt

394 	size_t cnt;  in php_sha512_crypt_r()  local
468 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r()
471 sha512_process_bytes(alt_result, cnt, &ctx); in php_sha512_crypt_r()
475 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r()
476 if ((cnt & 1) != 0) { in php_sha512_crypt_r()
490 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r()
499 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
503 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
509 for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt) { in php_sha512_crypt_r()
518 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
521 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
525 for (cnt = 0; cnt < rounds; ++cnt) { in php_sha512_crypt_r()
530 if ((cnt & 1) != 0) { in php_sha512_crypt_r()
537 if (cnt % 3 != 0) { in php_sha512_crypt_r()
542 if (cnt % 7 != 0) { in php_sha512_crypt_r()
547 if ((cnt & 1) != 0) { in php_sha512_crypt_r()
769 int cnt; in main() local
778 for (cnt = 0; cnt < (int) ntests; ++cnt) { in main()
780 sha512_process_bytes (tests[cnt].input, strlen (tests[cnt].input), &ctx); in main()
782 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
783 printf ("test %d run %d failed\n", cnt, 1); in main()
788 for (i = 0; tests[cnt].input[i] != '\0'; ++i) { in main()
789 sha512_process_bytes (&tests[cnt].input[i], 1, &ctx); in main()
792 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
793 printf ("test %d run %d failed\n", cnt, 2); in main()
808 printf ("test %d failed\n", cnt); in main()
812 for (cnt = 0; cnt < ntests2; ++cnt) { in main()
813 char *cp = php_sha512_crypt(tests2[cnt].input, tests2[cnt].salt); in main()
815 if (strcmp (cp, tests2[cnt].expected) != 0) { in main()
817 cnt, tests2[cnt].expected, cp); in main()