2048 is fine imo.


On 24 February 2014 01:15:29 Alex Gaynor <notifications@github.com> wrote:

> > +            
> :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
> > +            provider.
> > +
> > +        :param backend: A
> > +            :class:`~cryptography.hazmat.backends.interfaces.RSABackend`
> > +            provider.
> > +
> > +        :returns:
> > +            
> :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext`
> > +
> > +        .. doctest::
> > +
> > +            >>> from cryptography.hazmat.backends import default_backend
> > +            >>> from cryptography.hazmat.primitives import hashes
> > +            >>> from cryptography.hazmat.primitives.asymmetric import 
> rsa, padding
> > +            >>> private_key = rsa.RSAPrivateKey.generate(65537, 2048, 
> default_backend())
>
> keyword args please, and should we maybe use 4096? Does it make doctests slow?
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/pyca/cryptography/pull/673/files#r9979220