Skip to content

eax: replace iterator chain with simple for loops for tag XOR#804

Open
GarmashAlex wants to merge 1 commit intoRustCrypto:masterfrom
GarmashAlex:fix/eax-iterator-allocation
Open

eax: replace iterator chain with simple for loops for tag XOR#804
GarmashAlex wants to merge 1 commit intoRustCrypto:masterfrom
GarmashAlex:fix/eax-iterator-allocation

Conversation

@GarmashAlex
Copy link

What was wrong: Tag computation used chained iterators (into_iter → zip → map → zip → map → take → collect), creating multiple intermediate allocation objects
What changed: Replaced with simple for loops that XOR bytes in-place, matching the pattern used in other AEAD implementations (OCB3, AES-GCM, Deoxys, AES-SIV) in this codebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant