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

Use assembly calls for AES, optimize PRG #6

Open
tholop opened this issue Jan 7, 2021 · 1 comment
Open

Use assembly calls for AES, optimize PRG #6

tholop opened this issue Jan 7, 2021 · 1 comment
Labels
Type: Research 🔬 When further investigation into a subject is required

Comments

@tholop
Copy link
Member

tholop commented Jan 7, 2021

Try to optimize the PRG with a lightweight assembly call to AESNI instead of using the aesni crate:

// TODO: optimize format, byte operations, assembly call to AESNI (e.g. https://github.com/gendx/haraka-rs/blob/master/src/intrinsics.rs)

Here is an example of a Rust crate doing that (for a slightly older edition of Rust): https://github.com/gendx/haraka-rs/blob/e487b2821bfd5485e1e3df95909bdade2f615f3a/src/haraka256.rs#L6

Any other optimization of the MMO PRG is welcome! For instance, depending on the expansion factor needed, we might be able to save a few calls to AES:

// TODO: A 3x expansion PRG is slightly overkill

@tholop tholop added the Type: Research 🔬 When further investigation into a subject is required label Jan 7, 2021
@tholop
Copy link
Member Author

tholop commented Jan 18, 2021

For reference, here is some interesting work: Lightweight Techniques for Private Heavy Hitters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Research 🔬 When further investigation into a subject is required
Projects
None yet
Development

No branches or pull requests

1 participant