Lines Matching refs:salt
26 u8 salt[64]; member
179 hdr.length > sizeof(params->salt)) { in pkcs5_get_params_pbes2()
186 os_memcpy(params->salt, hdr.payload, hdr.length); in pkcs5_get_params_pbes2()
188 wpa_hexdump(MSG_DEBUG, "PKCS #5: salt", params->salt, params->salt_len); in pkcs5_get_params_pbes2()
340 hdr.length > sizeof(params->salt)) { in pkcs5_get_params()
347 os_memcpy(params->salt, hdr.payload, hdr.length); in pkcs5_get_params()
350 params->salt, params->salt_len); in pkcs5_get_params()
395 params->salt, params->salt_len); in pkcs5_crypto_init_pbes2()
398 if (pbkdf2_sha1(passwd, params->salt, params->salt_len, in pkcs5_crypto_init_pbes2()
422 static int pkcs12_key_gen(const u8 *pw, size_t pw_len, const u8 *salt, in pkcs12_key_gen() argument
449 *pos++ = salt[i % salt_len]; in pkcs12_key_gen()
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()
570 addr[1] = params->salt; in pkcs5_crypto_init()