secrecy/boxed.rs
1//! `Box` types containing secrets
2
3use super::{DebugSecret, Secret};
4use alloc::boxed::Box;
5use zeroize::Zeroize;
6
7/// `Box` types containing a secret value
8#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
9pub type SecretBox<S> = Secret<Box<S>>;
10
11impl<S: DebugSecret + Zeroize> DebugSecret for Box<S> {}