Yeah, except it's not a dropin replacement for any one using the default
digestmod (which is md5).


On Mon, Oct 28, 2013 at 6:34 AM, Donald Stufft <notifications@github.com>wrote:

> In cryptography/primitives/hmac.py:
>
> > +# Unless required by applicable law or agreed to in writing, software
> > +# distributed under the License is distributed on an "AS IS" BASIS,
> > +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > +# implied.
> > +# See the License for the specific language governing permissions and
> > +# limitations under the License.
> > +
> > +from __future__ import absolute_import, division, print_function
> > +
> > +import binascii
> > +
> > +import six
> > +
> > +
> > +class HMAC(object):
> > +    def __init__(self, key, hash_cls, data=None, ctx=None, backend=None):
>
> Yes, it's not the prettiest thing in the world but I think being able to
> use this class drop in replacement for the stdlib hmac would be a good goal.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pyca/cryptography/pull/157/files#r7247509>
> .
>



-- 
"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