diff --git a/client/src/key.rs b/client/src/key.rs index 38cf142c5..ea6de021a 100644 --- a/client/src/key.rs +++ b/client/src/key.rs @@ -39,7 +39,7 @@ impl Key { Self { key, strength } } - pub(crate) fn generate_private_key() -> Self { + pub fn generate_private_key() -> Self { Self::new(crypto::generate_private_key().to_vec()) } @@ -47,7 +47,7 @@ impl Key { Self::new(crypto::generate_public_key(private_key)) } - pub(crate) fn generate_aes_key(private_key: &Self, server_public_key: &Self) -> Self { + pub fn generate_aes_key(private_key: &Self, server_public_key: &Self) -> Self { Self::new(crypto::generate_aes_key(private_key, server_public_key).to_vec()) } }