Lines Matching refs:cnt
372 size_t cnt; in php_sha512_crypt_r() local
450 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r()
453 sha512_process_bytes(alt_result, cnt, &ctx); in php_sha512_crypt_r()
457 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r()
458 if ((cnt & 1) != 0) { in php_sha512_crypt_r()
472 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r()
481 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
485 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
491 for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt) { in php_sha512_crypt_r()
500 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
503 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
507 for (cnt = 0; cnt < rounds; ++cnt) { in php_sha512_crypt_r()
512 if ((cnt & 1) != 0) { in php_sha512_crypt_r()
519 if (cnt % 3 != 0) { in php_sha512_crypt_r()
524 if (cnt % 7 != 0) { in php_sha512_crypt_r()
529 if ((cnt & 1) != 0) { in php_sha512_crypt_r()
751 int cnt; in main() local
760 for (cnt = 0; cnt < (int) ntests; ++cnt) { in main()
762 sha512_process_bytes (tests[cnt].input, strlen (tests[cnt].input), &ctx); in main()
764 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
765 printf ("test %d run %d failed\n", cnt, 1); in main()
770 for (i = 0; tests[cnt].input[i] != '\0'; ++i) { in main()
771 sha512_process_bytes (&tests[cnt].input[i], 1, &ctx); in main()
774 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
775 printf ("test %d run %d failed\n", cnt, 2); in main()
790 printf ("test %d failed\n", cnt); in main()
794 for (cnt = 0; cnt < ntests2; ++cnt) { in main()
795 char *cp = php_sha512_crypt(tests2[cnt].input, tests2[cnt].salt); in main()
797 if (strcmp (cp, tests2[cnt].expected) != 0) { in main()
799 cnt, tests2[cnt].expected, cp); in main()