fix gglwe to ggsw key layout type

This commit is contained in:
Pro7ech
2025-11-05 22:21:26 +01:00
parent be6483df75
commit 18652da7e0
7 changed files with 35 additions and 24 deletions

View File

@@ -17,7 +17,7 @@ use crate::tfhe::{
use poulpy_core::{
GGSWNoise, GLWEDecrypt, GLWEEncryptSk, GLWEExternalProduct, LWEEncryptSk, ScratchTakeCore,
layouts::{
Dsize, GGSWLayout, GGSWPreparedFactory, GLWEAutomorphismKeyLayout, GLWESecretPreparedFactory, GLWETensorKeyLayout,
Dsize, GGLWEToGGSWKeyLayout, GGSWLayout, GGSWPreparedFactory, GLWEAutomorphismKeyLayout, GLWESecretPreparedFactory,
LWELayout,
},
};
@@ -90,7 +90,7 @@ where
rank: rank.into(),
dsize: Dsize(1),
},
layout_tsk: GLWETensorKeyLayout {
layout_tsk: GGLWEToGGSWKeyLayout {
n: n_glwe.into(),
base2k: base2k.into(),
k: k_tsk.into(),
@@ -271,7 +271,7 @@ where
rank: rank.into(),
dsize: Dsize(1),
},
layout_tsk: GLWETensorKeyLayout {
layout_tsk: GGLWEToGGSWKeyLayout {
n: n_glwe.into(),
base2k: base2k.into(),
k: k_tsk.into(),