RSA also has stuff like 
https://github.com/skeuomorf/cryptography/blob/dsa-backend/tests/hazmat/primitives/test_rsa.py#L65 
which helps constrain the key more too though. Maybe there isn't anything 
similar we can do for DSA, I'll have a look when I'm in the office.


On 2 April 2014 09:11:29 Mohammed Attia <notifications@github.com> wrote:

> > @@ -157,6 +166,34 @@ class TestDSA(object):
> >          'f90f7dff6d2bae'
> >      }
> > +    def test_generate_dsa_parameters(self, backend):
> > +        parameters = dsa.DSAParameters.generate(1024, backend)
> > +        assert bit_length(parameters.p) == 1024
>
> There are more tests here 
> https://github.com/skeuomorf/cryptography/blob/dsa-backend/tests/hazmat/primitives/test_dsa.py#L30 
> and 
> https://github.com/skeuomorf/cryptography/blob/dsa-backend/tests/hazmat/primitives/test_dsa.py#209 
> AFAIK these are more than what's in RSA?
>
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/pyca/cryptography/pull/739/files#r11195867