Lines Matching full:rounds
51 /* Prefix for optional rounds specification. */
52 static const char sha512_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_sha512() local
74 /* Default number of rounds. */ in crypt_sha512()
75 rounds = ROUNDS_DEFAULT; in crypt_sha512()
91 rounds = MAX(ROUNDS_MIN, MIN(srounds, ROUNDS_MAX)); in crypt_sha512()
180 for (cnt = 0; cnt < rounds; ++cnt) { in crypt_sha512()
213 cp += sprintf(cp, "%s%zu$", sha512_rounds_prefix, rounds); in crypt_sha512()
348 "$6$rounds=10000$saltstringsaltstring", "Hello world!",
349 "$6$rounds=10000$saltstringsaltst$OW1/O6BYHV6BcXZu8QVeXbDWra3Oeqh0sb"
353 "$6$rounds=5000$toolongsaltstring", "This is just a test",
354 "$6$rounds=5000$toolongsaltstrin$lQ8jolhgVRVhY4b5pZKaysCLi0QBxGoNeKQ"
358 "$6$rounds=1400$anotherlongsaltstring",
361 "$6$rounds=1400$anotherlongsalts$POfYwTEok97VWcjxIiSOjiykti.o/pQs.wP"
365 "$6$rounds=77777$short",
367 "$6$rounds=77777$short$WuQyW2YR.hBNpjjRhpYD/ifIw05xdfeEyQoMxIXbkvr0g"
371 "$6$rounds=123456$asaltof16chars..", "a short string",
372 "$6$rounds=123456$asaltof16chars..$BtCwjqMJGx5hrJhZywWvt0RLE8uZ4oPwc"
376 "$6$rounds=10$roundstoolow", "the minimum number is still observed",
377 "$6$rounds=1000$roundstoolow$kUMsbe306n21p9R.FRkW3IGn.S9NPN0x50YhH1x"