I don't think we want a word-for-word copy, I think we want the text to be
tailored to what the properties you get out of PBKDF2 are.


On Tue, Jan 28, 2014 at 12:29 PM, Paul Kehrer <notifications@github.com>wrote:

> In docs/hazmat/primitives/key-derivation-functions.rst:
>
> > +        >>> kdf = PBKDF2(hashes.SHA1(), 20, salt, 10000, backend)
> > +        >>> kdf.verify(b"my great password", key)
> > +
> > +    :param algorithm: An instance of a
> > +        :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
> > +        provider.
> > +    :param int length: The desired length of the derived key. Maximum is
> > +        2\ :sup:`31` - 1.
> > +    :param bytes salt: A salt. `NIST SP 800-132`_ recommends 128-bits or
> > +        longer.
> > +    :param int iterations: The number of iterations to perform of the hash
> > +        function.
> > +    :param backend: A
> > +        :class:`~cryptography.hazmat.backends.interfaces.CipherBackend`
> > +        provider.
> > +
>
> I was wondering about that. It'd be nice if there was a way to tell
> restructuredtext to import the methods from the interface, but I'll copy
> them over :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pyca/cryptography/pull/520/files#r9237962>
> .
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084