Lines Matching defs:rounds
7 * in the salt and rounds= setting must contain a valid iteration count,
190 * rounds limit has been lowered (versus the reference/spec), also for DoS
191 * protection. runtime is O(klen^2 + klen*rounds) */
213 char rounds[20] = "";
223 /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */
229 if (strncmp(salt, "rounds=", sizeof "rounds=" - 1) == 0) {
235 * bad rounds setting is rejected if it is
240 * rounds as part of the salt or parse them with
245 salt += sizeof "rounds=" - 1;
258 /* needed when rounds is zero prefixed or out of bounds */
259 sprintf(rounds, "rounds=%u$", r);
299 /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */
317 /* output is $6$rounds=n$salt$hash */
319 p += sprintf(p, "$6$%s%.*s$", rounds, slen, salt);
360 static const char testsetting[] = "$6$rounds=1234$abc0123456789$";
361 static const char testhash[] = "$6$rounds=1234$abc0123456789$BCpt8zLrc/RcyuXmCDOE1ALqMXB2MH6n1g891HhFj8.w7LxGv.FTkqq6Vxc/km3Y0jE0j24jY5PIv/oOu6reg1";