create_dh_parameters(key_len)

Creates a shared secret for generating a DH private/public key pair and
returns a binary string that can be passed to
create_asymmetric_priv_key(). If secret generation fails, the result is
NULL.

key_len is the key length. The minimum and maximum key lengths in bits
are 1,024 and 10,000. These key-length limits are constraints imposed
by OpenSSL. Server administrators can impose additional limits on
maximum key length by setting the MYSQL_OPENSSL_UDF_RSA_BITS_THRESHOLD,
MYSQL_OPENSSL_UDF_DSA_BITS_THRESHOLD, and
MYSQL_OPENSSL_UDF_DH_BITS_THRESHOLD environment variables. See
https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-configuri
ng.html.

For an example showing how to use the return value for generating
symmetric keys, see the description of asymmetric_derive().

URL: https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-functions-legacy.html

