Skip to content

Commit ad599d5

Browse files
committedApr 22, 2022
use zeroize for extra care with the generated keypair
1 parent 04c8d89 commit ad599d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ rand = "0.8.5"
3434
num_enum = "0.5.7"
3535
cfg-if = "1.0.0"
3636
hpke = { version = "0.8.0", default-features = false }
37+
zeroize = "1.3"
3738

3839
[dependencies.serde_crate]
3940
version = "1.0.136"

‎src/keypair.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cfg_if::cfg_if! {
1515
}
1616
} else {
1717
/// An encoded keypair
18-
#[derive(Debug, Clone, Eq, PartialEq)]
18+
#[derive(Debug, Clone, Eq, PartialEq, zeroize::Zeroize)]
1919
pub struct Keypair {
2020
/// the public key for this keypair
2121
pub public_key: Vec<u8>,

0 commit comments

Comments
 (0)
Please sign in to comment.