#[non_exhaustive]pub enum LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError: Error> {
    NullDecompositionBaseLog,
    NullDecompositionLevelCount,
    DecompositionTooLarge,
    KeysLweDimensionMismatch,
    InputLweDimensionMismatch,
    OutputLweDimensionMismatch,
    MalformedLookUpTables,
    InvalidSmallLookUpTableSize,
    Engine(EngineError),
}Expand description
An error used with the LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingEngine trait.
This type provides a
LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError::perform_generic_checks
function that does error checking for the general cases, returning an Ok(())
if the inputs are valid, meaning that engine implementors would then only
need to check for their own specific errors.
Otherwise an Err(..) with the proper error variant is returned.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NullDecompositionBaseLog
Generic error: The circuit bootstrap decomposition base log must be greater than zero.
NullDecompositionLevelCount
Generic error: The circuit bootstrap decomposition level count must be greater than zero.
DecompositionTooLarge
Generic error: The decomposition precision (base log * level count) must not exceed the precision of the ciphertext.
KeysLweDimensionMismatch
Generic error: The bootstrap key output LWE dimension must be the same as the input LWE dimension of the circuit bootstrap private functional packing keyswitch keys.
InputLweDimensionMismatch
Generic error: The input ciphertexts LWE dimension must be the same as the bootstrap key input LWE dimension.
OutputLweDimensionMismatch
Generic error:
The output ciphertexts LWE dimension must be the same as the cbs_pfpksk output GLWE dimension times its output polynomial size.
MalformedLookUpTables
Generic error:
The input luts must have a size divisible by the circuit bootstrap private functional packing keyswitch keys output polynomial size times the number of output ciphertexts. This is required to get small look-up tables of polynomials of the same size for each output ciphertext.
InvalidSmallLookUpTableSize
Generic error: The number of polynomials times the polynomial size in a small look-up table must be equal to 2 to the power the number of input ciphertexts encrypting bits.
Engine(EngineError)
Specific error to the implementing engine.
Implementations§
Source§impl<EngineError: Error> LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
 
impl<EngineError: Error> LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
Sourcepub fn perform_generic_checks<Input: LweCiphertextVectorEntity, Output: LweCiphertextVectorEntity, BootstrapKey: LweBootstrapKeyEntity, LUTs: PlaintextVectorEntity, CBSPFPKSK: LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysEntity>(
    input: &Input,
    output: &Output,
    bsk: &BootstrapKey,
    luts: &LUTs,
    cbs_decomposition_level_count: DecompositionLevelCount,
    cbs_decomposition_base_log: DecompositionBaseLog,
    cbs_pfpksk: &CBSPFPKSK,
    ciphertext_modulus_log: usize,
) -> Result<(), Self>
 
pub fn perform_generic_checks<Input: LweCiphertextVectorEntity, Output: LweCiphertextVectorEntity, BootstrapKey: LweBootstrapKeyEntity, LUTs: PlaintextVectorEntity, CBSPFPKSK: LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysEntity>( input: &Input, output: &Output, bsk: &BootstrapKey, luts: &LUTs, cbs_decomposition_level_count: DecompositionLevelCount, cbs_decomposition_base_log: DecompositionBaseLog, cbs_pfpksk: &CBSPFPKSK, ciphertext_modulus_log: usize, ) -> Result<(), Self>
Validates the inputs
Trait Implementations§
Source§impl<EngineError: Clone + Error> Clone for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
 
impl<EngineError: Clone + Error> Clone for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
Source§fn clone(
    &self,
) -> LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
 
fn clone( &self, ) -> LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<EngineError: Debug + Error> Debug for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
 
impl<EngineError: Debug + Error> Debug for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
Source§impl<EngineError: Error> Display for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
 
impl<EngineError: Error> Display for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
Source§impl<EngineError: Error> Error for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
 
impl<EngineError: Error> Error for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
 
fn description(&self) -> &str
Source§impl From<FftError> for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<FftError>
 
impl From<FftError> for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<FftError>
Source§impl<EngineError: PartialEq + Error> PartialEq for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
 
impl<EngineError: PartialEq + Error> PartialEq for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
Source§fn eq(
    &self,
    other: &LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>,
) -> bool
 
fn eq( &self, other: &LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>, ) -> bool
self and other values to be equal, and is used by ==.impl<EngineError: Eq + Error> Eq for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
impl<EngineError: Error> StructuralPartialEq for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>
Auto Trait Implementations§
impl<EngineError> Freeze for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>where
    EngineError: Freeze,
impl<EngineError> RefUnwindSafe for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>where
    EngineError: RefUnwindSafe,
impl<EngineError> Send for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>where
    EngineError: Send,
impl<EngineError> Sync for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>where
    EngineError: Sync,
impl<EngineError> Unpin for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>where
    EngineError: Unpin,
impl<EngineError> UnwindSafe for LweCiphertextVectorDiscardingCircuitBootstrapBooleanVerticalPackingError<EngineError>where
    EngineError: UnwindSafe,
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more