Lines Matching refs:priv
1190 * @priv: Pointer for returning Diffie-Hellman private key
1193 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv)
1201 wpabuf_free(*priv);
1202 *priv = wpabuf_alloc(dh->prime_len);
1203 if (*priv == NULL)
1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len))
1208 wpabuf_free(*priv);
1209 *priv = NULL;
1213 if (os_memcmp(wpabuf_head(*priv), dh->prime, dh->prime_len) > 0) {
1215 *(wpabuf_mhead_u8(*priv)) = 0;
1217 wpa_hexdump_buf_key(MSG_DEBUG, "DH: private value", *priv);
1224 wpabuf_head(*priv), wpabuf_len(*priv),