Lines Matching full:rounds
51 /* Prefix for optional rounds specification. */
52 static const char sha256_rounds_prefix[] = "rounds=";
56 /* Default number of rounds if not explicitly specified. */
58 /* Minimum number of rounds. */
60 /* Maximum number of rounds. */
69 size_t salt_len, key_len, cnt, rounds; in crypt_sha256() local
74 /* Default number of rounds. */ in crypt_sha256()
75 rounds = ROUNDS_DEFAULT; in crypt_sha256()
91 rounds = MAX(ROUNDS_MIN, MIN(srounds, ROUNDS_MAX)); in crypt_sha256()
180 for (cnt = 0; cnt < rounds; ++cnt) { in crypt_sha256()
213 cp += sprintf(cp, "%s%zu$", sha256_rounds_prefix, rounds); in crypt_sha256()
316 "$5$rounds=10000$saltstringsaltstring", "Hello world!",
317 "$5$rounds=10000$saltstringsaltst$3xv.VbSHBb41AL9AvLeujZkZRBAwqFMz2."
321 "$5$rounds=5000$toolongsaltstring", "This is just a test",
322 "$5$rounds=5000$toolongsaltstrin$Un/5jzAHMgOGZ5.mWJpuVolil07guHPvOW8"
326 "$5$rounds=1400$anotherlongsaltstring",
329 "$5$rounds=1400$anotherlongsalts$Rx.j8H.h8HjEDGomFU8bDkXm3XIUnzyxf12"
333 "$5$rounds=77777$short",
335 "$5$rounds=77777$short$JiO1O3ZpDAxGJeaDIuqCoEFysAe1mZNJRs3pw0KQRd/"
338 "$5$rounds=123456$asaltof16chars..", "a short string",
339 "$5$rounds=123456$asaltof16chars..$gP3VQ/6X7UUEW3HkBn2w1/Ptq2jxPyzV/"
343 "$5$rounds=10$roundstoolow", "the minimum number is still observed",
344 "$5$rounds=1000$roundstoolow$yfvwcWrQ8l/K0DAWyuPMDNHpIVlTQebY9l/gL97"