No, I was thinking that salt would be a constructor parameter, since not
all KDFs take a salt (e.g. scrypt)


On Mon, Jan 27, 2014 at 5:13 PM, Paul Kehrer <notifications@github.com>wrote:

> In cryptography/hazmat/primitives/interfaces.py:
>
> > @@ -257,3 +257,19 @@ def e(self):
> >          """
> >          The public exponent of the RSA key. Alias for public_exponent.
> >          """
> > +
> > +
> > +class KeyDerivationFunction(six.with_metaclass(abc.ABCMeta)):
> > +    @abc.abstractmethod
> > +    def derive(self, key_material):
>
> Are you thinking derive hides salt generation or returns something that
> contains the derived key and the salt?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pyca/cryptography/pull/513/files#r9210832>
> .
>



-- 
"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