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

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

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

impl<S: CloneableSecret + Zeroize> CloneableSecret for Vec<S> {}
impl<S: DebugSecret + Zeroize> DebugSecret for Vec<S> {}