Opened 4 years ago

Closed 3 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 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by adsworth

comment:1 Changed 4 years ago by ptone

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by ramiro

  • Summary changed from In crypto.salted_hmachmac.new expects bates as a value not str. to In crypto.salted_hmachmac.new expects bytes as a value not str.

comment:3 Changed 4 years ago by adsworth

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 Changed 3 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top