-
Notifications
You must be signed in to change notification settings - Fork 13
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
polyval: detect VPCLMULQDQ at runtime #184
Comments
This is reply to this comment.
I am not sure I understand. In our implementation we XOR input block Maybe you had Poly1305 in mind? |
We already implement POLYVAL in parallel using ILP. It could use VPCLMULQDQ instead (automatically, when available, as opposed to requiring special RUSTFLAGS) |
We process one block at a time. ILP is used only for the 3 |
The optimization I wanted to explore in this particular issue is to find a way to enable VPCLMULQDQ optimizations without the user having to pass |
As of #44,
polyval
will compile to VPCLMULQDQ instructions on new enough CPU architectures.We might be able to use a trick similar to RustCrypto/password-hashes#440 where we detect the relevant CPU features and call a special function annotated with
target_feature
to ensure it's always used where available.The text was updated successfully, but these errors were encountered: