Skip to content

call check_length early on AesSiv::encrypt#14792

Merged
alex merged 1 commit into
pyca:mainfrom
reaperhulk:aessiv-fix
May 4, 2026
Merged

call check_length early on AesSiv::encrypt#14792
alex merged 1 commit into
pyca:mainfrom
reaperhulk:aessiv-fix

Conversation

@reaperhulk

Copy link
Copy Markdown
Member

This is an optimization to early exit before allocating a PyBytes when the buffer is too large and would error inside the encrypt_into (which also calls check_length)

This is an optimization to early exit before allocating a PyBytes when
the buffer is too large and would error inside the encrypt_into (which
also calls check_length)
@alex alex enabled auto-merge (squash) May 4, 2026 04:19
@alex alex merged commit 67ec1e5 into pyca:main May 4, 2026
72 checks passed
@reaperhulk reaperhulk deleted the aessiv-fix branch May 4, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants