Lines Matching defs:pw_len
422 static int pkcs12_key_gen(const u8 *pw, size_t pw_len, const u8 *salt,
442 P_len = v * ((pw_len + v - 1) / v);
451 if (pw_len) {
453 *pos++ = pw[i % pw_len];
515 size_t pw_len;
522 pw_len = passwd ? os_strlen(passwd) : 0;
523 pw = os_malloc(2 * (pw_len + 1));
526 if (pw_len) {
527 for (i = 0; i <= pw_len; i++)
529 pw_len = 2 * (pw_len + 1);
532 if (pkcs12_key_gen(pw, pw_len, params->salt, params->salt_len,
535 pkcs12_key_gen(pw, pw_len, params->salt, params->salt_len,