Add MACContext and switch HMAC and CMAC to use it.

Fixes #1319.

Thoughts?
Oooh, good idea.

On Sun, Oct 19, 2014 at 7:54 PM, Paul Kehrer <notifications@github.com>
wrote:

> In cryptography/hazmat/primitives/interfaces.py:
>
> > +        """
> > +
> > +    @abc.abstractmethod
> > +    def copy(self):
> > +        """
> > +        Return a MACContext that is a copy of the current context.
> > +        """
> > +
> > +    @abc.abstractmethod
> > +    def verify(self, signature):
> > +        """
> > +        Checks if the generated message authentication code matches the
> > +        signature.
> > +        """
> > +
> > +CMACContext = MACContext
>
> Since this is part of a deprecation cycle (even if it won't actually ever
> raise a warning) could we have a comment with DeprecatedIn07 so we can find
> it and remove it in the ninth release?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pyca/cryptography/pull/1396/files#r19066748>.
>



-- 
"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