Warning
This post was published 60 days ago. The information described in this article may have changed.
Basically, my question is: is secretmangle/src/arbitrary.rs at master ยท ProgramCrafter/secretmangle ยท GitHub sound with the current Rust rules?
This module does not do much from Rust perspective, since it is intended to mangle stored values so that they are not easily seen in debugger, memory dump (such as swap file) or leak. However, it intends to work on any type which is provided to it.
The key design principles:
T
value is stored in a separate allocation, using a data: Box<MaybeUninit<T>>
.T
- it even is permitted to have padding at the same place as T - the ideal buffer seems to be key: MaybeUninit<T>
as well.3 posts - 2 participants
๐ท๏ธ rust_feed