Skip to content

Commit

Permalink
Update zeroizing
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeickert committed May 6, 2024
1 parent 260d046 commit cda79ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions comms/core/src/tor/control_client/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use std::{fmt, net::SocketAddr};

use serde_derive::{Deserialize, Serialize};
use zeroize::Zeroize;
use zeroize::{Zeroize, ZeroizeOnDrop};

#[derive(Clone, Copy, Debug)]
pub enum KeyType {
Expand Down Expand Up @@ -79,8 +79,7 @@ impl fmt::Display for KeyBlob<'_> {
}
}

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Zeroize)]
#[zeroize(drop)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Zeroize, ZeroizeOnDrop)]
pub enum PrivateKey {
/// The server should use the 1024 bit RSA key provided in as KeyBlob (v2).
Rsa1024(String),
Expand Down

0 comments on commit cda79ae

Please sign in to comment.