1
2
3
4
5
6
7
8
9
10
//! Errors related to the twisted ElGamal encryption scheme.
use thiserror::Error;

#[derive(Error, Clone, Debug, Eq, PartialEq)]
pub enum DiscreteLogError {
    #[error("discrete log number of threads not power-of-two")]
    DiscreteLogThreads,
    #[error("discrete log batch size too large")]
    DiscreteLogBatchSize,
}