mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 21:26:41 +01:00
wip test glwe encryption
This commit is contained in:
@@ -4,7 +4,7 @@ use poulpy_hal::{
|
||||
oep::{ScratchOwnedAllocImpl, ScratchOwnedBorrowImpl, VecZnxSubScalarInplaceImpl},
|
||||
};
|
||||
|
||||
use crate::decryption::GLWEDecryption;
|
||||
use crate::decryption::GLWEDecrypt;
|
||||
use crate::layouts::{
|
||||
GGLWE, GGLWEInfos, GGLWEToRef, GLWEPlaintext, LWEInfos,
|
||||
prepared::{GLWESecretPrepared, GLWESecretPreparedToRef},
|
||||
@@ -90,7 +90,7 @@ pub trait GGLWENoise<BE: Backend> {
|
||||
|
||||
impl<BE: Backend> GGLWENoise<BE> for Module<BE>
|
||||
where
|
||||
Module<BE>: GLWEDecryption<BE>,
|
||||
Module<BE>: GLWEDecrypt<BE>,
|
||||
Scratch<BE>: ScratchTakeBasic
|
||||
+ ScratchOwnedAllocImpl<BE>
|
||||
+ ScratchOwnedBorrowImpl<BE>
|
||||
|
||||
@@ -9,7 +9,7 @@ use poulpy_hal::{
|
||||
oep::{ScratchOwnedAllocImpl, ScratchOwnedBorrowImpl},
|
||||
};
|
||||
|
||||
use crate::decryption::GLWEDecryption;
|
||||
use crate::decryption::GLWEDecrypt;
|
||||
use crate::layouts::prepared::GLWESecretPreparedToRef;
|
||||
use crate::layouts::{GGSW, GGSWInfos, GGSWToRef, GLWEInfos, GLWEPlaintext, LWEInfos, prepared::GLWESecretPrepared};
|
||||
|
||||
@@ -79,7 +79,7 @@ where
|
||||
+ VecZnxIdftApplyTmpA<BE>
|
||||
+ VecZnxAddScalarInplace
|
||||
+ VecZnxSubInplace
|
||||
+ GLWEDecryption<BE>,
|
||||
+ GLWEDecrypt<BE>,
|
||||
Scratch<BE>: ScratchTakeBasic,
|
||||
{
|
||||
fn ggsw_assert_noise<R, S, P, F>(&self, res: &R, sk_prepared: &S, pt_want: &P, max_noise: F)
|
||||
|
||||
@@ -9,7 +9,7 @@ use poulpy_hal::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
decryption::GLWEDecryption,
|
||||
decryption::GLWEDecrypt,
|
||||
layouts::{
|
||||
GLWE, GLWEPlaintext, GLWEPlaintextToRef, GLWEToRef, LWEInfos,
|
||||
prepared::{GLWESecretPrepared, GLWESecretPreparedToRef},
|
||||
@@ -124,7 +124,7 @@ where
|
||||
+ VecZnxNormalizeTmpBytes
|
||||
+ VecZnxSubInplace
|
||||
+ VecZnxNormalizeInplace<BE>
|
||||
+ GLWEDecryption<BE>,
|
||||
+ GLWEDecrypt<BE>,
|
||||
Scratch<BE>: ScratchTakeBasic
|
||||
+ ScratchOwnedAllocImpl<BE>
|
||||
+ ScratchOwnedBorrowImpl<BE>
|
||||
|
||||
Reference in New Issue
Block a user