bitvec icon indicating copy to clipboard operation
bitvec copied to clipboard

Feature request: Add Zeroize trait implementation for bit structs

Open rillian opened this issue 3 years ago • 1 comments
trafficstars

BitVec is very convenient for protocol data and processing bit-oriented encodings. For cryptographic applications it would be nice if it implemented the Zeroize trait for clearing key material from memory after use. As far as I can tell, this is something that can only be effectively implemented by this crate directly, since it needs to understand the memory layout and allocation pattern.

Similar to #168.

rillian avatar Apr 12 '22 18:04 rillian

The ability to reset the existing BitVec with true or false values would be convenient. For now I'm just looping over every index myself, setting the value accordingly during my reset step. It would be best of that could be accomplished by the crate for optimal performance.

AustinHellerRepo avatar Jan 08 '23 21:01 AustinHellerRepo