pub struct ClientKey { /* private fields */ }Available on crate features
boolean or shortint or integer only.Expand description
Key of the client
This struct contains the keys that are of interest to the user as they will allow to encrypt and decrypt data.
This key MUST NOT be sent to the server.
Implementations§
source§impl ClientKey
impl ClientKey
pub fn generate_with_seed<C: Into<Config>>(config: C, seed: Seed) -> ClientKey
sourcepub fn generate_server_key(&self) -> ServerKey
pub fn generate_server_key(&self) -> ServerKey
Generates a new ServerKey
The ServerKey generated is meant to be used to initialize the global state
using crate::high_level_api::set_server_key.
sourcepub fn generate_compressed_server_key(&self) -> CompressedServerKey
pub fn generate_compressed_server_key(&self) -> CompressedServerKey
Generates a new CompressedServerKey
Trait Implementations§
source§impl<'de> Deserialize<'de> for ClientKey
impl<'de> Deserialize<'de> for ClientKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FheTryEncrypt<bool, ClientKey> for CompressedFheBool
Available on crate feature boolean only.
impl FheTryEncrypt<bool, ClientKey> for CompressedFheBool
Available on crate feature
boolean only.Auto Trait Implementations§
impl RefUnwindSafe for ClientKey
impl Send for ClientKey
impl Sync for ClientKey
impl Unpin for ClientKey
impl UnwindSafe for ClientKey
Blanket Implementations§
§impl<'short, T, Target> AsGeneralizedRef<'short, &'short Target> for Twhere
T: AsRef<Target> + ?Sized,
Target: ?Sized,
impl<'short, T, Target> AsGeneralizedRef<'short, &'short Target> for Twhere T: AsRef<Target> + ?Sized, Target: ?Sized,
fn as_generalized_ref(&'short self) -> &'short Target
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more