Skip to content

Commit

Permalink
Clear stack page after signing
Browse files Browse the repository at this point in the history
  • Loading branch information
clehner committed Oct 20, 2021
1 parent 49198f0 commit aeea9f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ sshkeys = "0.3"
reqwest = { version = "0.11", features = ["json"] }
flate2 = "1.0"
bitvec = "0.20"
clear_on_drop = "0.2.4"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
chrono = { version = "0.4", features = ["serde"] }
Expand Down
1 change: 1 addition & 0 deletions src/jws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ pub fn sign_bytes(algorithm: Algorithm, data: &[u8], key: &JWK) -> Result<Vec<u8
},
_ => return Err(Error::KeyTypeNotImplemented),
};
clear_on_drop::clear_stack(1);
Ok(signature)
}

Expand Down

0 comments on commit aeea9f4

Please sign in to comment.