GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SystemError in OpenSSL's SHAKE when passing negative digest sizes · Issue #135759 · python/cpython Closed Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:import _hashlib _hashlib.openssl_shake_128(b'').digest(-1) # SystemError _hashlib.openssl_shake_128(b'').hexdigest(-1) # MemoryError import _sha3 _sha3.shake_128(b'').digest(-1) # ValueError _sha3.shake_128(b'').hexdigest(-1) # ValueError The reason is that OpenSSL implementation accepts a Now, to prevent users passing incorrect data length, I also suggest to restrict has lengths to 2 ** 29 as it was done in HACL* and in #79103 but I'll do it in a follow-up. In the first time, let's only focus on raising a ValueError for all implementations on negative inputs. CPython versions tested on:CPython main branch Operating systems tested on:No response Linked PRsNote See #135759 (comment) for the rationale of a non-backport. Activity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |