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)
Change History (5)
by , 13 years ago
Attachment: | fix-crypto-salted_hmac.patch added |
---|
comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 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 , 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 , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
for reference: http://docs.python.org/py3k/library/hmac.html#hmac.new