summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crypto.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/crypto.rs b/src/crypto.rs
index 049f6b0..c3417fd 100644
--- a/src/crypto.rs
+++ b/src/crypto.rs
@@ -17,16 +17,10 @@ use sha2::Sha256;
const NAMESPACE: &[u8] = b"identity.mozilla.com/picl/v1/";
-#[derive(Clone, PartialEq, Eq, Zeroize, Serialize, Deserialize)]
+#[derive(Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(try_from = "String", into = "String")]
pub struct SecretBytes<const N: usize>(pub [u8; N]);
-impl<const N: usize> Drop for SecretBytes<N> {
- fn drop(&mut self) {
- self.zeroize();
- }
-}
-
#[derive(Clone, PartialEq, Eq)]
pub struct TokenID(pub [u8; 32]);
@@ -123,7 +117,6 @@ mod from_hkdf {
}
use from_hkdf::from_hkdf;
-use zeroize::Zeroize;
impl<const N: usize> SecretBytes<N> {
pub fn generate() -> Self {