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

Poseidon: Evaluate security of short Montgomery matrices #91

Open
UlrichHaboeck75 opened this issue Mar 31, 2021 · 1 comment
Open

Poseidon: Evaluate security of short Montgomery matrices #91

UlrichHaboeck75 opened this issue Mar 31, 2021 · 1 comment
Labels
security issue A (possible) attack vector

Comments

@UlrichHaboeck75
Copy link

As seen from our implementation for the MNT4/6-753, Poseidon is significantly improved using MDS matrices supporting short Montgomery multiplication: The entries of such matrices $M=(m_{i,j})$ are such that the field elements $m_{i,j} * 2^64$ are only 64 bit long, and matrix multiplication is improved by a factor of roughly
$$
1/num_words,
$$
where $num_words$ is the field size in 64-bit words. For large field sizes, as in the case of the above MNTs, the short Montgomery approach outperforms the optimization strategy in Appendix B of the Poseidon paper, and even for smaller fields with $num_words =4$ (e.g., Tweedle or Pasta curves) the advantage is significant.

Using MDS matrices supporting short Montgomery multiplication seems no threat to the attacks in the paper:

  • The analysis of statistical attacks relies on the number active S-Boxes only, and these are the same as as long as the matrix still passes Algorithm 1, 2 and 3 in the parameter generation script, and
  • the algebraic attacks seem not to benefit from short representations either.

However, strongly recommend to contact hash experts in this regard: even though withstanding linear and differential cryptanalysis, short Montgomery multiplication is much less "dispersive" than ordinary multiplication, possibly allowing new types of attacks.

@UlrichHaboeck75 UlrichHaboeck75 added the security issue A (possible) attack vector label Mar 31, 2021
@UlrichHaboeck75 UlrichHaboeck75 changed the title Poseidon: Evaluate security of short Montgomery MDS matrices Poseidon: Evaluate security of short Montgomery matrices Mar 31, 2021
@UlrichHaboeck75
Copy link
Author

I have asked the Poseidon authors about their opinion. They think it's ok, but we should double-check the cryptanalysis from their paper once again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security issue A (possible) attack vector
Projects
None yet
Development

No branches or pull requests

1 participant