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