Skip to content

Use assembly calls for AES, optimize PRG #6

@tholop

Description

@tholop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Research 🔬When further investigation into a subject is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions