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

Fast-key erasure RNG using AES-NI #1

Closed
vks opened this issue Mar 29, 2018 · 7 comments
Closed

Fast-key erasure RNG using AES-NI #1

vks opened this issue Mar 29, 2018 · 7 comments

Comments

@vks
Copy link

vks commented Mar 29, 2018

I ported jedisct1/aes-stream to Rust: vks/aesrng. Would this be of interest to this repository?

@newpavlov
Copy link
Member

newpavlov commented Mar 29, 2018

Not in this repo, but it can be a good addition to CSRNGs repo. BTW it will be nice if you'll implement traits from rand_core crate. Can this algorithm be written generically over block cipher, so you could use aesni crate, without losing performance?

@newpavlov
Copy link
Member

Also can you provide any specifications of the implemented algorithm? We would like to avoid inclusion of home brew algorithms.

@tarcieri
What do you think?

@vks
Copy link
Author

vks commented Mar 29, 2018

it will be nice if you'll implement traits from rand_core crate.

Already done on my local branch, I just need to update it to use the recently published crate.

Also can you provide any specifications of the implemented algorithm?

The algorithm was suggested on djb's blog. I think it is implemented for various ciphers in SUPERCOP (see fastrandombytes). This gives it some legitimacy, but IMHO it still has to be considered homebrewn.

Can this algorithm be written generically over block cipher, so you could use aesni crate, without losing performance?

Maybe, but it is currently written using very low-level SIMD, so it is probably a lot of work to do this.

@tarcieri
Copy link
Member

@newpavlov it's an interesting algorithm that provides a nicely fast CSPRNG wherever hardware AES is available. I'd be in favor of including it

@newpavlov
Copy link
Member

@vks
Can you please create a PR to CSRNGs repository?

@vks
Copy link
Author

vks commented Aug 7, 2018 via email

@vks
Copy link
Author

vks commented Aug 13, 2018

Closed in favor of RustCrypto/CSRNGs#2.

@vks vks closed this as completed Aug 13, 2018
sseemayer added a commit to sseemayer/stream-ciphers that referenced this issue Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants