Enum concrete_core::specification::engines::LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError
source · [−]#[non_exhaustive]
pub enum LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError<EngineError: Error> {
NullDecompositionBaseLog,
NullDecompositionLevelCount,
DecompositionTooLarge,
Engine(EngineError),
}
Expand description
An error used with the LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationEngine
trait.
This type provides a
LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError::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 key decomposition base log must be greater than zero.
NullDecompositionLevelCount
Generic error: The key 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.
Engine(EngineError)
Specific error to the implementing engine.
Implementations
sourceimpl<EngineError: Error> LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError<EngineError>
impl<EngineError: Error> LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError<EngineError>
sourcepub fn perform_generic_checks(
decomposition_level_count: DecompositionLevelCount,
decomposition_base_log: DecompositionBaseLog,
ciphertext_modulus_log: usize
) -> Result<(), Self>
pub fn perform_generic_checks(
decomposition_level_count: DecompositionLevelCount,
decomposition_base_log: DecompositionBaseLog,
ciphertext_modulus_log: usize
) -> Result<(), Self>
Validates the inputs
Trait Implementations
sourceimpl<EngineError: Clone + Error> Clone for LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError<EngineError>
impl<EngineError: Clone + Error> Clone for LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError<EngineError>
sourcefn clone(
&self
) -> LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError<EngineError>
fn clone(
&self
) -> LweCircuitBootstrapPrivateFunctionalPackingKeyswitchKeysGenerationError<EngineError>
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more