mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 21:26:41 +01:00
fixed encryption
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
use std::io::{Read, Result, Write};
|
||||
|
||||
pub trait GetDistribution {
|
||||
fn dist(&self) -> &Distribution;
|
||||
}
|
||||
|
||||
pub trait GetDistributionMut {
|
||||
fn dist_mut(&mut self) -> &mut Distribution;
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub enum Distribution {
|
||||
TernaryFixed(usize), // Ternary with fixed Hamming weight
|
||||
|
||||
Reference in New Issue
Block a user