[New-bugs-announce] [issue42981] Error messages raised by _hashlib_scrypt_impl() are slightly misleading

Illia Volochii report at bugs.python.org
Wed Jan 20 14:02:38 EST 2021


New submission from Illia Volochii <illia.volochii at gmail.com>:

Error messages state that maxmem and dklen must be smaller than INT_MAX, but values equal to INT_MAX are allowed too.

Also, another error message states that n must be a power of 2, but it does not mention that 1 or 2⁰ is not allowed.

----------
components: Extension Modules
messages: 385360
nosy: illia-v
priority: normal
severity: normal
status: open
title: Error messages raised by _hashlib_scrypt_impl() are slightly misleading

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42981>
_______________________________________


More information about the New-bugs-announce mailing list