We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab1d0fe commit 3a40502Copy full SHA for 3a40502
1 file changed
src/core.rs
@@ -15,7 +15,7 @@ use std::{
15
use arc_swap::{ArcSwap, ArcSwapOption};
16
use go_defer::defer;
17
use serde::{Deserialize, Serialize};
18
-use zeroize::Zeroizing;
+use zeroize::{Zeroize, Zeroizing};
19
20
use crate::{
21
cli::config::MountEntryHMACLevel,
@@ -55,14 +55,17 @@ impl SealConfig {
55
}
56
57
58
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, PartialEq, Zeroize)]
59
+#[zeroize(drop)]
60
pub struct InitResult {
61
pub secret_shares: Zeroizing<Vec<Vec<u8>>>,
62
pub root_token: String,
63
64
-#[derive(Clone)]
65
+#[derive(Clone, Zeroize)]
66
67
pub struct CoreState {
68
+ #[zeroize(skip)]
69
pub system_view: Option<Arc<BarrierView>>,
70
pub sealed: bool,
71
pub unseal_key_shares: Vec<Vec<u8>>,
0 commit comments