Skip to content

Import https://github.com/vks/aesrng#3

Open
vks wants to merge 1 commit into
RustCrypto:masterfrom
vks:aes-rng
Open

Import https://github.com/vks/aesrng#3
vks wants to merge 1 commit into
RustCrypto:masterfrom
vks:aes-rng

Conversation

@vks

@vks vks commented Aug 18, 2018

Copy link
Copy Markdown

Fixes #2.

Comment thread aes-rng/src/lib.rs
struct Aligned([u8; 16]);
let mut t: Aligned = std::mem::uninitialized();
let t = t.0.as_mut_ptr();
r[0].store(t);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this part. See the original implementation.

@newpavlov

Copy link
Copy Markdown
Member

Thank you! I will try to take a look in a week or so.

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

Successfully merging this pull request may close these issues.

2 participants