Lines Matching defs:rounds
50 /* Prefix for optional rounds specification. */
51 static const char sha256_rounds_prefix[] = "rounds=";
55 /* Default number of rounds if not explicitly specified. */
57 /* Minimum number of rounds. */
59 /* Maximum number of rounds. */
69 size_t salt_len, key_len, cnt, rounds;
77 /* Default number of rounds. */
78 rounds = ROUNDS_DEFAULT;
94 rounds = MAX(ROUNDS_MIN, MIN(srounds, ROUNDS_MAX));
183 for (cnt = 0; cnt < rounds; ++cnt) {
218 sha256_rounds_prefix, rounds);
370 "$5$rounds=10000$saltstringsaltstring", "Hello world!",
371 "$5$rounds=10000$saltstringsaltst$3xv.VbSHBb41AL9AvLeujZkZRBAwqFMz2."
375 "$5$rounds=5000$toolongsaltstring", "This is just a test",
376 "$5$rounds=5000$toolongsaltstrin$Un/5jzAHMgOGZ5.mWJpuVolil07guHPvOW8"
380 "$5$rounds=1400$anotherlongsaltstring",
383 "$5$rounds=1400$anotherlongsalts$Rx.j8H.h8HjEDGomFU8bDkXm3XIUnzyxf12"
387 "$5$rounds=77777$short",
389 "$5$rounds=77777$short$JiO1O3ZpDAxGJeaDIuqCoEFysAe1mZNJRs3pw0KQRd/"
392 "$5$rounds=123456$asaltof16chars..", "a short string",
393 "$5$rounds=123456$asaltof16chars..$gP3VQ/6X7UUEW3HkBn2w1/Ptq2jxPyzV/"
397 "$5$rounds=10$roundstoolow", "the minimum number is still observed",
398 "$5$rounds=1000$roundstoolow$yfvwcWrQ8l/K0DAWyuPMDNHpIVlTQebY9l/gL97"