Lines Matching defs:rounds
52 /* Prefix for optional rounds specification. */
53 static const char sha512_rounds_prefix[] = "rounds=";
57 /* Default number of rounds if not explicitly specified. */
59 /* Minimum number of rounds. */
61 /* Maximum number of rounds. */
70 size_t salt_len, key_len, cnt, rounds;
75 /* Default number of rounds. */
76 rounds = ROUNDS_DEFAULT;
92 rounds = MAX(ROUNDS_MIN, MIN(srounds, ROUNDS_MAX));
181 for (cnt = 0; cnt < rounds; ++cnt) {
214 cp += sprintf(cp, "%s%zu$", sha512_rounds_prefix, rounds);
349 "$6$rounds=10000$saltstringsaltstring", "Hello world!",
350 "$6$rounds=10000$saltstringsaltst$OW1/O6BYHV6BcXZu8QVeXbDWra3Oeqh0sb"
354 "$6$rounds=5000$toolongsaltstring", "This is just a test",
355 "$6$rounds=5000$toolongsaltstrin$lQ8jolhgVRVhY4b5pZKaysCLi0QBxGoNeKQ"
359 "$6$rounds=1400$anotherlongsaltstring",
362 "$6$rounds=1400$anotherlongsalts$POfYwTEok97VWcjxIiSOjiykti.o/pQs.wP"
366 "$6$rounds=77777$short",
368 "$6$rounds=77777$short$WuQyW2YR.hBNpjjRhpYD/ifIw05xdfeEyQoMxIXbkvr0g"
372 "$6$rounds=123456$asaltof16chars..", "a short string",
373 "$6$rounds=123456$asaltof16chars..$BtCwjqMJGx5hrJhZywWvt0RLE8uZ4oPwc"
377 "$6$rounds=10$roundstoolow", "the minimum number is still observed",
378 "$6$rounds=1000$roundstoolow$kUMsbe306n21p9R.FRkW3IGn.S9NPN0x50YhH1x"