Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 9 of 9) sorted by relevance

/crypt/
A Dsha256test.c50 int cnt; in main() local
52 for (cnt = 0; cnt < (int) (sizeof (tests) / sizeof (tests[0])); ++cnt) in main()
55 __sha256_process_bytes (tests[cnt].input, strlen (tests[cnt].input), in main()
58 if (memcmp (tests[cnt].result, sum, 32) != 0) in main()
60 printf ("test %d run %d failed\n", cnt, 1); in main()
65 for (int i = 0; tests[cnt].input[i] != '\0'; ++i) in main()
66 __sha256_process_bytes (&tests[cnt].input[i], 1, &ctx); in main()
68 if (memcmp (tests[cnt].result, sum, 32) != 0) in main()
70 printf ("test %d run %d failed\n", cnt, 2); in main()
87 printf ("test %d failed\n", cnt++); in main()
[all …]
A Dsha512test.c69 int cnt; in main() local
71 for (cnt = 0; cnt < (int) (sizeof (tests) / sizeof (tests[0])); ++cnt) in main()
74 __sha512_process_bytes (tests[cnt].input, strlen (tests[cnt].input), in main()
77 if (memcmp (tests[cnt].result, sum, 64) != 0) in main()
79 printf ("test %d run %d failed\n", cnt, 1); in main()
84 for (int i = 0; tests[cnt].input[i] != '\0'; ++i) in main()
85 __sha512_process_bytes (&tests[cnt].input[i], 1, &ctx); in main()
87 if (memcmp (tests[cnt].result, sum, 64) != 0) in main()
89 printf ("test %d run %d failed\n", cnt, 2); in main()
108 printf ("test %d failed\n", cnt); in main()
A Dmd5test.c34 int cnt; in main() local
36 for (cnt = 0; cnt < (int) (sizeof (tests) / sizeof (tests[0])); ++cnt) in main()
41 __md5_process_bytes (tests[cnt].input, strlen (tests[cnt].input), &ctx); in main()
43 result |= memcmp (tests[cnt].result, sum, 16); in main()
46 for (i = 0; tests[cnt].input[i] != '\0'; ++i) in main()
47 __md5_process_bytes (&tests[cnt].input[i], 1, &ctx); in main()
49 result |= memcmp (tests[cnt].result, sum, 16); in main()
A Dsha256-crypt.c109 size_t cnt; in __sha256_crypt_r() local
220 for (cnt = key_len; cnt > 32; cnt -= 32) in __sha256_crypt_r()
226 for (cnt = key_len; cnt > 0; cnt >>= 1) in __sha256_crypt_r()
227 if ((cnt & 1) != 0) in __sha256_crypt_r()
239 for (cnt = 0; cnt < key_len; ++cnt) in __sha256_crypt_r()
258 for (cnt = key_len; cnt >= 32; cnt -= 32) in __sha256_crypt_r()
266 for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) in __sha256_crypt_r()
274 for (cnt = salt_len; cnt >= 32; cnt -= 32) in __sha256_crypt_r()
280 for (cnt = 0; cnt < rounds; ++cnt) in __sha256_crypt_r()
292 if (cnt % 3 != 0) in __sha256_crypt_r()
[all …]
A Dsha512-crypt.c109 size_t cnt; in __sha512_crypt_r() local
219 for (cnt = key_len; cnt > 64; cnt -= 64) in __sha512_crypt_r()
225 for (cnt = key_len; cnt > 0; cnt >>= 1) in __sha512_crypt_r()
226 if ((cnt & 1) != 0) in __sha512_crypt_r()
238 for (cnt = 0; cnt < key_len; ++cnt) in __sha512_crypt_r()
257 for (cnt = key_len; cnt >= 64; cnt -= 64) in __sha512_crypt_r()
265 for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) in __sha512_crypt_r()
273 for (cnt = salt_len; cnt >= 64; cnt -= 64) in __sha512_crypt_r()
279 for (cnt = 0; cnt < rounds; ++cnt) in __sha512_crypt_r()
291 if (cnt % 3 != 0) in __sha512_crypt_r()
[all …]
A Dspeeds.c35 static int cnt; variable
56 printf ("Did %f %s()s per second.\n", ((float) cnt) / elapsed, in Stop()
72 static void clearmem(start, cnt) in clearmem() argument
74 int cnt;
75 { while(cnt--)
139 for (cnt = 0;; cnt++) in main()
A Dmd5-crypt.c97 size_t cnt; in __md5_crypt_r() local
193 for (cnt = key_len; cnt > 16; cnt -= 16) in __md5_crypt_r()
195 md5_process_bytes (alt_result, cnt, &ctx, nss_ctx); in __md5_crypt_r()
204 for (cnt = key_len; cnt > 0; cnt >>= 1) in __md5_crypt_r()
205 md5_process_bytes ((cnt & 1) != 0 in __md5_crypt_r()
215 for (cnt = 0; cnt < 1000; ++cnt) in __md5_crypt_r()
221 if ((cnt & 1) != 0) in __md5_crypt_r()
227 if (cnt % 3 != 0) in __md5_crypt_r()
231 if (cnt % 7 != 0) in __md5_crypt_r()
235 if ((cnt & 1) != 0) in __md5_crypt_r()
A Dcrypt-entry.c42 void _ufc_clearmem (char *start, int cnt);
44 #define _ufc_clearmem(start, cnt) memset(start, 0, cnt) argument
A Dcrypt_util.c41 void _ufc_clearmem (char *start, int cnt);
42 void _ufc_copymem (char *from, char *to, int cnt);
303 _ufc_clearmem (char *start, int cnt) in _ufc_clearmem() argument
305 while(cnt--) in _ufc_clearmem()
310 _ufc_copymem (char *from, char *to, int cnt) in _ufc_copymem() argument
312 while(cnt--) in _ufc_copymem()
316 #define _ufc_clearmem(start, cnt) memset(start, 0, cnt) argument
317 #define _ufc_copymem(from, to, cnt) memcpy(to, from, cnt) argument

Completed in 19 milliseconds