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

AES-NI version of SuiteB module using FFI #1416

Merged
merged 10 commits into from
Sep 14, 2022
Merged

AES-NI version of SuiteB module using FFI #1416

merged 10 commits into from
Sep 14, 2022

Conversation

qsctr
Copy link
Contributor

@qsctr qsctr commented Aug 25, 2022

This PR adds a module SuiteB_FFI which uses AES-NI hardware instructions on x86_64 when possible, and falls back to the Cryptol/Haskell primitive implementations in the builtin SuiteB module otherwise.

Closes #1398.

@qsctr qsctr added the FFI Foreign function interface label Aug 25, 2022
@qsctr qsctr self-assigned this Aug 25, 2022
@qsctr qsctr marked this pull request as ready for review August 30, 2022 23:05
@qsctr qsctr requested a review from yav August 30, 2022 23:05
Copy link
Member

@yav yav 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. It might also be nice to have a version that goes as fast as possible (i.e., changes the API to avoid the byte swapping, and also doesn't check if the instructions are supportd (i.e., only works if you have the hardware). I'll make a separate thicket for that though.

@yav yav merged commit 6fd1a11 into master Sep 14, 2022
@RyanGlScott RyanGlScott deleted the ffi-aes-ni branch March 22, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FFI Foreign function interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FFI version of SuiteB AES functions
2 participants