@staticmethod<EOL><INDENT>def generate(bits=<NUM_LIT>, progress_func=None):<DEDENT>
numbers = dsa.generate_private_key(<EOL>bits, backend=default_backend()<EOL>).private_numbers()<EOL>key = DSSKey(<EOL>vals=(<EOL>numbers.public_numbers.parameter_numbers.p,<EOL>numbers.public_numbers.parameter_numbers.q,<EOL>numbers.public_numbers.parameter_numbers.g,<EOL>numbers.public_numbers.y,<EOL>)<EOL>)<EOL>key.x = numbers.x<EOL>return key<EOL>
Generate a new private DSS key.  This factory function can be used to
generate a new host key or authentication key.

:param int bits: number of bits the generated key should be.
:param progress_func: Unused
:return: new `.DSSKey` private key