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

Leverage latest code quality improvements in Eurydice etc. #472

Merged
merged 18 commits into from
Aug 18, 2024

Conversation

protz
Copy link
Collaborator

@protz protz commented Aug 8, 2024

No description provided.

@franziskuskiefer franziskuskiefer self-requested a review August 9, 2024 05:50
@msprotz
Copy link
Contributor

msprotz commented Aug 9, 2024

I thought I had modified the Docker file to pick up the latest versions of tooling but apparently not.

@franziskuskiefer
Copy link
Member

I thought I had modified the Docker file to pick up the latest versions of tooling but apparently not.

You have, but it's not automated (see #417).


The NIST FIPS 203 standard can be found at
<https://csrc.nist.gov/pubs/fips/203/ipd>.
*/
Copy link
Member

Choose a reason for hiding this comment

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

Hm, we get two comments here? Can they be merged?

Copy link
Contributor

Choose a reason for hiding this comment

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

Would you like them merged? It's a matter of preference whether you want the user-written comment fused with the auto-generated one. I don't have a strong opinion, except that visually it helps I think to separate the two.

@@ -2534,11 +2613,10 @@ with const generics
static inline libcrux_ml_kem_polynomial_PolynomialRingElement_d2 clone_d5_48(
libcrux_ml_kem_polynomial_PolynomialRingElement_d2 *self) {
libcrux_ml_kem_polynomial_PolynomialRingElement_d2 lit;
core_core_arch_x86___m256i ret[16U];
__m256i ret[16U];
Copy link
Member

Choose a reason for hiding this comment

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

Could this collide with the real __m256i type?

Copy link
Contributor

Choose a reason for hiding this comment

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


```plaintext
Input: byte stream B ∈ 𝔹*.
Output: array â ∈ ℤ₂₅₆.
Copy link
Member

Choose a reason for hiding this comment

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

I hope C tools are ok with all the unicode characters 😬

Copy link
Contributor

Choose a reason for hiding this comment

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

so far so good!

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 to me! I'll see if I can address the Docker image generation.

@msprotz
Copy link
Contributor

msprotz commented Aug 13, 2024

I'm also pushing a couple other low-hanging fruits on this branch, such as chopping the libcrux_intrinsics prefix for intrinsics.

@franziskuskiefer
Copy link
Member

In order to make the C code not blow up the stack I

  • inlined the unpacked code for key generation and encryption
  • demoted MUST_INLINE to inline in target.h in cg

@franziskuskiefer franziskuskiefer merged commit c85c0f9 into main Aug 18, 2024
54 checks passed
@franziskuskiefer franziskuskiefer deleted the protz_cosmetic branch August 18, 2024 20:21
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.

4 participants