Function proj_crypto::asymmetric::commitments::gen_dh_params [] [src]

pub fn gen_dh_params() -> Result<DHParams, ()>

Generates diffie-hellman parameters appropriate for use with the commitments.

This will take a long time. The algorithm is the one presented on page 190 of "Cryptography Engineering" by Ferguson, Schneir and Kohono.