Zeroize secret

This commit is contained in:
Cléo Rebert 2022-12-22 17:06:52 +01:00
parent cf6029aaf3
commit cf017a9b67
No known key found for this signature in database
GPG Key ID: 74E461C12B6038A3
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ pub enum SecretParseError {
}
#[derive(Debug, Clone, Eq)]
#[cfg_attr(feature = "zeroize", derive(zeroize::Zeroize, zeroize::ZeroizeOnDrop))]
pub enum Secret {
/// represent a non-encoded "raw" secret
Raw(Vec<u8>),