How common is it to pre-generate DH params and compile them into an application? Or do most people pre-generate them on startup? Are there API's to serialize a DH param to a buffer, and deserialize by reading the buffer and regenerating the DH param (like PEM_write_DHparam() and PEM_read_DHparam() does writes to and reads from a file respectively - is there anything like this but writes to and reads from a buffer?
Title: Question about generating DH params