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: Replace "aliasing pointer" pattern with MaybeUninit pattern. #977

Merged

Conversation

briansmith
Copy link
Owner

The code was using the "aliasing pointer" pattern to avoid needing to
deal with core::mem::uninitialized(). Now we can use
core::mem::MaybeUninit instead of either.

The code was using the "aliasing pointer" pattern to avoid needing to
deal with `core::mem::uninitialized()`. Now we can use
`core::mem::MaybeUninit` instead of either.
@briansmith briansmith force-pushed the b/use-MaybeUninit-instead-of-aliasing-ptr-in-AES branch from c8a9313 to 8e33f10 Compare May 5, 2020 16:17
@briansmith briansmith merged commit 5b6a275 into master May 5, 2020
@briansmith briansmith deleted the b/use-MaybeUninit-instead-of-aliasing-ptr-in-AES branch May 5, 2020 16:18
@briansmith
Copy link
Owner Author

This raised the minimum Rust version to 1.36.

@briansmith
Copy link
Owner Author

This raised the minimum Rust version to 1.36.

Actually, we were using alloc for quite a while, so we've been requiring 1.36+ for anybody using RSA already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant