mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 21:26:41 +01:00
wip
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use base2k::{
|
||||
Backend, FFT64, Module, Scalar, ScalarAlloc, ScalarZnxDft, ScalarZnxDftOps, ScalarZnxDftToMut, Scratch, VecZnxDft,
|
||||
VecZnxDftAlloc, VecZnxDftToMut,
|
||||
Backend, Module, Scalar, ScalarAlloc, ScalarZnxDft, ScalarZnxDftAlloc, ScalarZnxDftOps, ScalarZnxDftToMut, Scratch, VecZnxDft, VecZnxDftAlloc, VecZnxDftToMut, ZnxInfos, FFT64
|
||||
};
|
||||
use sampling::source::Source;
|
||||
|
||||
@@ -43,6 +42,16 @@ impl SecretKey<Scalar<Vec<u8>>> {
|
||||
}
|
||||
}
|
||||
|
||||
type SecretKeyPrep<C, B> = SecretKey<ScalarZnxDft<C, B>>;
|
||||
|
||||
impl<B: Backend> SecretKey<ScalarZnxDft<Vec<u8>, B>> {
|
||||
pub fn new(module: &Module<B>) -> Self{
|
||||
Self{
|
||||
data: module.new_scalar_znx_dft(1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct PublicKey<D, B: Backend> {
|
||||
data: VecZnxDft<D, B>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user