Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = None created_at = <Date 2022-01-29.20:26:03.762> labels = ['type-bug'] title = 'One-off errors in hashlib.scrypt error messages' updated_at = <Date 2022-01-29.20:26:03.762> user = 'https://bugs.python.org/ronkaminsky'
bugs.python.org fields:
activity = <Date 2022-01-29.20:26:03.762> actor = 'ron_kaminsky' assignee = 'none' closed = False closed_date = None closer = None components = [] creation = <Date 2022-01-29.20:26:03.762> creator = 'ron_kaminsky' dependencies = [] files = [] hgrepos = [] issue_num = 46575 keywords = [] message_count = 1.0 messages = ['412103'] nosy_count = 1.0 nosy_names = ['ron_kaminsky'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue46575' versions = []
There are one-off errors in upper bounds given in the error messages for hashlib.scrypt(...). MAX_INT *is* accepted (and at least for maxmem, works).
See
cpython/Modules/_hashopenssl.c
Line 1375 in 8fb3649
and
Line 1382 in 8fb3649
With thanks to everyone involved for all the fine work on Python!
gh-90733: improve `hashlib.scrypt` interface (#136100)
As exception messages were changed, we won't backport this. Thanks for the report.
pythongh-90733: improve `hashlib.scrypt` interface (python#136100)
Activity
ronkaminsky commented on Jan 29, 2022
There are one-off errors in upper bounds given in the error messages for hashlib.scrypt(...). MAX_INT *is* accepted (and at least for maxmem, works).
See
cpython/Modules/_hashopenssl.c
Line 1375 in 8fb3649
and
cpython/Modules/_hashopenssl.c
Line 1382 in 8fb3649
With thanks to everyone involved for all the fine work on Python!
gh-90733: improve `hashlib.scrypt` interface (#136100)
picnixz commented on Jul 14, 2025
As exception messages were changed, we won't backport this. Thanks for the report.
pythongh-90733: improve `hashlib.scrypt` interface (python#136100)
pythongh-90733: improve `hashlib.scrypt` interface (python#136100)