String formatting error in error message

Bug #1722389 reported by J R Parsons
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python-Crypto
New
Undecided
Unassigned

Bug Description

In **Cipher/mode_ctr.py** , if a check of the counter block length fails, the error message is

"Size of the counter block (% bytes ..."

but should read

"Size of the counter block (%d bytes ..." to avoid throwing an invalid string formatting error. Recommend searching the code for "% bytes" to see if it was reused code.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.