Lines Matching refs:params
46 struct pkcs5_params *params)
57 os_memset(params, 0, sizeof(*params));
67 params->alg = pkcs5_get_alg(&oid);
68 if (params->alg == PKCS5_ALG_UNKNOWN) {
103 os_memcpy(params->salt, hdr.payload, hdr.length);
104 params->salt_len = hdr.length;
106 params->salt, params->salt_len);
116 params->iter_count = *hdr.payload;
118 params->iter_count = WPA_GET_BE16(hdr.payload);
120 params->iter_count = WPA_GET_BE32(hdr.payload);
128 params->iter_count);
129 if (params->iter_count == 0 || params->iter_count > 0xffff) {
131 "iterationCount=0x%x", params->iter_count);
139 static struct crypto_cipher * pkcs5_crypto_init(struct pkcs5_params *params,
147 if (params->alg != PKCS5_ALG_MD5_DES_CBC)
152 addr[1] = params->salt;
153 len[1] = params->salt_len;
158 for (i = 1; i < params->iter_count; i++) {
176 struct pkcs5_params params;
179 if (pkcs5_get_params(enc_alg, enc_alg_len, ¶ms) < 0) {
184 ctx = pkcs5_crypto_init(¶ms, passwd);