Trait tfhe::prelude::FheKeyswitch

source ·
pub trait FheKeyswitch<T> {
    // Required method
    fn keyswitch(&self, input: &T) -> T;
}
Available on crate feature integer only.
Expand description

Key switch an ciphertext into a new ciphertext of same type but encrypted under a different key.

Required Methods§

source

fn keyswitch(&self, input: &T) -> T

Implementors§

source§

impl FheKeyswitch<FheBool> for KeySwitchingKey

source§

impl<Id> FheKeyswitch<FheInt<Id>> for KeySwitchingKey
where Id: FheIntId,

source§

impl<Id> FheKeyswitch<FheUint<Id>> for KeySwitchingKey
where Id: FheUintId,