1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
//! Secret `Vec` types

use super::{DebugSecret, Secret};
use alloc::vec::Vec;
use zeroize::Zeroize;

/// `Vec` types containing secret value
#[cfg(feature = "alloc")]
pub type SecretVec<S> = Secret<Vec<S>>;

#[cfg(feature = "alloc")]
impl<S: DebugSecret + Zeroize> DebugSecret for Vec<S> {}