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

ML-DSA: AVX2 implementations of some arithmetic functions and t1 deserialization. #455

Merged
merged 7 commits into from
Jul 31, 2024

Conversation

xvzcf
Copy link
Contributor

@xvzcf xvzcf commented Jul 30, 2024

No description provided.

Copy link
Collaborator

@jschneider-bensch jschneider-bensch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some questions. 👍

libcrux-ml-dsa/src/simd/avx2.rs Outdated Show resolved Hide resolved

// We will test if |simd_unit| > bound - 1, because if this is the case then
// it follows that |simd_unit| >= bound
let bound = mm256_set1_epi32(bound - 1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory this could underflow, right? Is that why you want to revisit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I'm not sure if it can underflow, but I put the TODO there since I haven't tried to properly calculate the representative ranges that this function will see.

libcrux-ml-dsa/src/simd/avx2/arithmetic.rs Outdated Show resolved Hide resolved
@xvzcf xvzcf merged commit 6d3b583 into main Jul 31, 2024
54 checks passed
@xvzcf xvzcf deleted the goutam/ml-dsa-avx2-part-3 branch July 31, 2024 16:37
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