Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

128X-MAC: properly absorb all concatenated tags into the first lane #87

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

jedisct1
Copy link
Collaborator

The FinalizeMac function concatenates the tags from all AEGIS instances and absorbs them into the first state, following the behavior of AEGIS-128L.

However, the Update function referenced here belongs to AEGIS-128X.

When the degree is greater than 1, bytes [16..32] correspond to the second AEGIS instance (or, in implementations, the second half of a 256-bit register), rather than the first instance.

Adjust the padding to ensure all bytes are correctly loaded into the first instance.

The `FinalizeMac` function concatenates the tags from all AEGIS instances
and absorbs them into the first state, following the behavior of AEGIS-128L.

However, the `Update` function referenced here belongs to AEGIS-128X.

When the degree is greater than 1, bytes [16..32] correspond to the second
AEGIS instance (or, in implementations, the second half of a 256-bit
register), rather than the first instance.

Adjust the padding to ensure all bytes are correctly loaded into the first
instance.
@jedisct1
Copy link
Collaborator Author

Known implementations have been updated to reflect this, but we should publish a new revision quickly.

@jedisct1 jedisct1 merged commit a59dfc4 into main Feb 17, 2025
2 checks passed
@jedisct1 jedisct1 deleted the 128xmac branch February 17, 2025 20:50
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.

2 participants