Lines Matching defs:iterations
35 const void *salt, size_t salt_len, unsigned iterations,
46 (const uint8_t *)salt, salt_len, iterations, digest,
152 // Tests key derivation using iterations=0.
155 // key derivation with iterations=0 is ill-defined and should result in a
167 // Verify that calling with iterations=1 works.
169 1 /* iterations */, digest, key_len, key)) {
170 fprintf(stderr, "PBKDF2 failed with iterations=1\n");
178 // However calling it with iterations=0 fails.
180 0 /* iterations */, digest, key_len, key)) {
181 fprintf(stderr, "PBKDF2 returned zero with iterations=0\n");
185 // For backwards compatibility, the iterations == 0 case still fills in