sanitization-arrayvec
Small arrayvec integration crate for sanitization.
The main sanitization crate stays dependency-free. This sister crate provides
SecretArrayVec<T, CAP>, a clear-on-drop wrapper around arrayvec::ArrayVec
for projects that already use arrayvec.
use SecretBytes;
use SecretArrayVec;
let mut keys = new;
keys.push.unwrap;
keys.clear_secret;
If push reaches capacity, arrayvec::CapacityError returns the original
element unchanged. The caller must securely reuse or sanitize it. Use
push_or_sanitize when rejection should consume and clear the element instead;
that method returns a payload-free SanitizedCapacityError.