Opened 13 years ago

Closed 12 years ago

#16943 closed Bug (fixed)

In crypto.salted_hmachmac.new expects bytes as a value not str.

Reported by: adsworth Owned by: adsworth
Component: Python 3 Version: 1.3
Severity: Normal Keywords:
Cc: adsworth Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

the function hmac.new expects bytes as the msg parameter. use the function utils.py3.b to makes sure it's bytes.

This patch will only apply in the features/py3k branch.

Attachments (1)

fix-crypto-salted_hmac.patch (611 bytes ) - added by adsworth 13 years ago.

Download all attachments as: .zip

Change History (5)

by adsworth, 13 years ago

comment:1 by Preston Holmes, 13 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Ramiro Morales, 13 years ago

Summary: In crypto.salted_hmachmac.new expects bates as a value not str.In crypto.salted_hmachmac.new expects bytes as a value not str.

comment:3 by adsworth, 13 years ago

This patch will only apply in the features/py3k branch as it uses the utils.py3 module that hasn't made it into trunk yet, AFAIK.

comment:4 by Aymeric Augustin, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top