def METHOD_NAME(self, parameters: DSAParameterNumbers) -> None:
    """
    Override check_dsa_parameters from cryptography's dsa.py
    Without this the error below occurs:
    ValueError: p must be exactly 1024, 2048, or 3072 bits long
    Allows for shorter or longer parameters.p to be returned
    from the server's host key. This is a HORRIBLE hack and a
    security risk, please remove if possible!
    By now, with firmware:
    2.0.5 Build 20200109 Rel.36203(s)
    It's still not possible to remove this hack.
    """
    if parameters.q.bit_length() not in [160, 256]:
        raise ValueError("q must be exactly 160 or 256 bits long")
    if not (1 < parameters.g < parameters.p):
        raise ValueError("g, p don't satisfy 1 < g < p.")