Skip to content

Commit

Permalink
Modified SecretBox to allow external call to the "new" method
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroMBB committed Jan 9, 2024
1 parent 47867d2 commit 8e3e4f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion umbral-pre/src/secret_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ impl<T> SecretBox<T>
where
T: Zeroize + Clone,
{
pub(crate) fn new(val: T) -> Self {
/// Creates an new instance of an immutable reference to the secret data.
pub fn new(val: T) -> Self {
Self(Box::new(val))
}

Expand Down

0 comments on commit 8e3e4f1

Please sign in to comment.