crypto_dh_encode_key
err = crypto_dh_encode_key(buf, buf_size, ¶ms);
EXPORT_SYMBOL_GPL(crypto_dh_encode_key);
int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params);
ret = crypto_dh_encode_key(secret, secretlen, &dh_inputs);