Skip to content

Commit 6e2b899

Browse files
committed
wip
1 parent 62f080c commit 6e2b899

File tree

19 files changed

+347
-604
lines changed

19 files changed

+347
-604
lines changed

tfhe/c_api_tests/test_high_level_custom_integers.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ int main(void) {
215215

216216
config_builder_default(&builder);
217217
config_builder_use_custom_parameters(&builder,
218-
SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128);
218+
SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128);
219219
config_builder_build(builder, &config);
220220

221221
ClientKey *client_key = NULL;
@@ -243,7 +243,7 @@ int main(void) {
243243

244244
config_builder_default(&builder);
245245
config_builder_use_custom_parameters(&builder,
246-
SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128);
246+
SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128);
247247
config_builder_build(builder, &config);
248248

249249
ClientKey *client_key = NULL;

tfhe/c_api_tests/test_high_level_integers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ int main(void) {
647647
assert(ok == 0);
648648
// Then use small parameters, those are gaussians as we don't have small TUniform params
649649
ok = config_builder_use_custom_parameters(
650-
&builder, SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128);
650+
&builder, SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128);
651651
ok = config_builder_build(builder, &config);
652652
assert(ok == 0);
653653

tfhe/c_api_tests/test_shortint_keygen.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void test_predefined_keygen_w_serde(void) {
1515
ShortintCompressedCiphertext *cct = NULL;
1616
ShortintCompressedCiphertext *deser_cct = NULL;
1717
ShortintCiphertext *decompressed_ct = NULL;
18-
ShortintPBSParameters params = SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
18+
ShortintPBSParameters params = SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
1919

2020
int gen_keys_ok = shortint_gen_keys_with_parameters(params, &cks, &sks);
2121
assert(gen_keys_ok == 0);
@@ -79,7 +79,7 @@ void test_server_key_trivial_encrypt(void) {
7979
ShortintClientKey *cks = NULL;
8080
ShortintServerKey *sks = NULL;
8181
ShortintCiphertext *ct = NULL;
82-
ShortintPBSParameters params = SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
82+
ShortintPBSParameters params = SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
8383

8484
int gen_keys_ok = shortint_gen_keys_with_parameters(params, &cks, &sks);
8585
assert(gen_keys_ok == 0);
@@ -219,10 +219,10 @@ void test_compressed_public_keygen(ShortintPBSParameters params) {
219219
int main(void) {
220220
test_predefined_keygen_w_serde();
221221
test_custom_keygen();
222-
test_public_keygen(SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128);
223-
test_public_keygen(SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128);
224-
test_compressed_public_keygen(SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128);
225-
test_compressed_public_keygen(SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128);
222+
test_public_keygen(SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128);
223+
test_public_keygen(SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128);
224+
test_compressed_public_keygen(SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128);
225+
test_compressed_public_keygen(SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128);
226226
test_server_key_trivial_encrypt();
227227
return EXIT_SUCCESS;
228228
}

tfhe/c_api_tests/test_shortint_pbs.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void test_shortint_pbs_2_bits_message(void) {
4141
ShortintPBSLookupTable *lookup_table = NULL;
4242
ShortintClientKey *cks = NULL;
4343
ShortintServerKey *sks = NULL;
44-
ShortintPBSParameters params = SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
44+
ShortintPBSParameters params = SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
4545

4646
int gen_keys_ok = shortint_gen_keys_with_parameters(params, &cks, &sks);
4747
assert(gen_keys_ok == 0);
@@ -115,7 +115,7 @@ void test_shortint_bivariate_pbs_2_bits_message(void) {
115115
ShortintBivariatePBSLookupTable *lookup_table = NULL;
116116
ShortintClientKey *cks = NULL;
117117
ShortintServerKey *sks = NULL;
118-
ShortintPBSParameters params = SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
118+
ShortintPBSParameters params = SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
119119

120120
int gen_keys_ok = shortint_gen_keys_with_parameters(params, &cks, &sks);
121121
assert(gen_keys_ok == 0);

tfhe/c_api_tests/test_shortint_server_key.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void test_server_key(void) {
541541

542542
ShortintPBSParameters params = SHORTINT_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128;
543543
// We don't have TUniform small params, use gaussian instead
544-
ShortintPBSParameters params_small = SHORTINT_V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
544+
ShortintPBSParameters params_small = SHORTINT_V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
545545

546546
assert(params.message_modulus == 1 << message_bits);
547547
assert(params.carry_modulus == 1 << carry_bits);

tfhe/docs/configuration/parallelized_pbs.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ The following example shows how to use parallelized bootstrapping by choosing mu
1313
```rust
1414
use tfhe::prelude::*;
1515
use tfhe::{generate_keys, set_server_key, ConfigBuilder, FheUint32};
16-
use tfhe::shortint::parameters::v1_1::V1_1_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64;
16+
use tfhe::shortint::parameters::v1_2::V1_2_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64;
1717

1818
fn main() -> Result<(), Box<dyn std::error::Error>> {
1919
let config = ConfigBuilder::default()
20-
.use_custom_parameters(V1_1_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64)
20+
.use_custom_parameters(V1_2_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64)
2121
.build();
2222

2323
let (keys, server_keys) = generate_keys(config);
@@ -45,12 +45,12 @@ Here's an example:
4545
```rust
4646
use tfhe::prelude::*;
4747
use tfhe::{generate_keys, set_server_key, ConfigBuilder, FheUint32};
48-
use tfhe::shortint::parameters::v1_1::V1_1_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64;
48+
use tfhe::shortint::parameters::v1_2::V1_2_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64;
4949

5050
fn main() -> Result<(), Box<dyn std::error::Error>> {
5151
let config = ConfigBuilder::default()
5252
.use_custom_parameters(
53-
V1_1_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64.with_deterministic_execution(),
53+
V1_2_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64.with_deterministic_execution(),
5454
)
5555
.build();
5656

tfhe/docs/fhe-computation/advanced-features/zk-pok.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ use tfhe::zk::{CompactPkeCrs, ZkComputeLoad};
106106
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
107107
let mut rng = thread_rng();
108108

109-
let params = tfhe::shortint::parameters::v1_1::V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128;
109+
let params = tfhe::shortint::parameters::v1_2::V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128;
110110
// Indicate which parameters to use for the Compact Public Key encryption
111-
let cpk_params = tfhe::shortint::parameters::v1_1::compact_public_key_only::p_fail_2_minus_128::ks_pbs::V1_1_PARAM_PKE_TO_SMALL_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1;
111+
let cpk_params = tfhe::shortint::parameters::v1_2::compact_public_key_only::p_fail_2_minus_128::ks_pbs::V1_2_PARAM_PKE_TO_SMALL_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1;
112112
// And parameters allowing to keyswitch/cast to the computation parameters.
113-
let casting_params = tfhe::shortint::parameters::v1_1::key_switching::p_fail_2_minus_128::ks_pbs::V1_1_PARAM_KEYSWITCH_PKE_TO_SMALL_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1;
113+
let casting_params = tfhe::shortint::parameters::v1_2::key_switching::p_fail_2_minus_128::ks_pbs::V1_2_PARAM_KEYSWITCH_PKE_TO_SMALL_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1;
114114
// Enable the dedicated parameters on the config
115115
let config = tfhe::ConfigBuilder::with_custom_parameters(params)
116116
.use_dedicated_compact_public_key_parameters((cpk_params, casting_params)).build();

tfhe/docs/fhe-computation/compute/parameters.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ These default parameters may be updated with in future releases of **TFHE-rs**,
3232

3333
Parameter sets are versioned for backward compatibility. This means that each set of parameters can be tied to a specific version of **TFHE-rs**, so that they remain unchanged and compatible after an upgrade.
3434

35-
All parameter sets are stored as variables inside the `tfhe::shortint::parameters` module, with submodules named after the versions of **TFHE-rs** in which these parameters where added. For example, parameters added in **TFHE-rs** v1.0 can be found inside `tfhe::shortint::parameters::v1_1`.
35+
All parameter sets are stored as variables inside the `tfhe::shortint::parameters` module, with submodules named after the versions of **TFHE-rs** in which these parameters where added. For example, parameters added in **TFHE-rs** v1.0 can be found inside `tfhe::shortint::parameters::v1_0`.
3636

37-
The naming convention of these parameters indicates their capabilities. Taking `tfhe::parameters::v1_1::V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128` as an example:
38-
- `V1_1`: these parameters were introduced in **TFHE-rs** v1.0
37+
The naming convention of these parameters indicates their capabilities. Taking `tfhe::parameters::v1_2::V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128` as an example:
38+
- `V1_2`: these parameters were introduced in **TFHE-rs** v1.0
3939
- `MESSAGE_2`: LWE blocks include 2 bits of message
4040
- `CARRY_2`: LWE blocks include 2 bits of carry
4141
- `KS_PBS`: the keyswitch is computed before the bootstrap
@@ -50,11 +50,11 @@ You can override the default parameters with the `with_custom_parameters(block_p
5050

5151
```rust
5252
use tfhe::{ConfigBuilder, generate_keys};
53-
use tfhe::shortint::parameters::v1_1::V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
53+
use tfhe::shortint::parameters::v1_2::V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128;
5454

5555
fn main() {
5656
let config =
57-
ConfigBuilder::with_custom_parameters(V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128)
57+
ConfigBuilder::with_custom_parameters(V1_2_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128)
5858
.build();
5959

6060
// Client-side

tfhe/docs/integration/js_on_wasm_api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function fhe_uint32_example() {
3737

3838
const U32_MAX = 4294967295;
3939

40-
const block_params = new ShortintParameters(ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64);
40+
const block_params = new ShortintParameters(ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64);
4141
let config = TfheConfigBuilder.default()
4242
.build();
4343

@@ -90,7 +90,7 @@ async function example() {
9090
await initThreadPool(navigator.hardwareConcurrency);
9191
await init_panic_hook();
9292

93-
const block_params = new ShortintParameters(ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64);
93+
const block_params = new ShortintParameters(ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64);
9494
// ....
9595
}
9696
```

tfhe/examples/sha256.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use std::io::{stdin, Read};
44
use std::mem::MaybeUninit;
55
use std::{array, iter};
66
use tfhe::prelude::*;
7-
use tfhe::shortint::parameters::v1_1::{
8-
V1_1_PARAM_MULTI_BIT_GROUP_2_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
9-
V1_1_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
7+
use tfhe::shortint::parameters::v1_2::{
8+
V1_2_PARAM_MULTI_BIT_GROUP_2_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
9+
V1_2_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
1010
};
1111
use tfhe::{set_server_key, ClientKey, CompressedServerKey, ConfigBuilder, Device, FheUint32};
1212

@@ -190,10 +190,10 @@ fn main() -> Result<(), std::io::Error> {
190190
let config = match args.multibit {
191191
None => ConfigBuilder::default(),
192192
Some(2) => ConfigBuilder::with_custom_parameters(
193-
V1_1_PARAM_MULTI_BIT_GROUP_2_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
193+
V1_2_PARAM_MULTI_BIT_GROUP_2_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
194194
),
195195
Some(3) => ConfigBuilder::with_custom_parameters(
196-
V1_1_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
196+
V1_2_PARAM_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
197197
),
198198
Some(v) => {
199199
panic!("Invalid multibit setting {v}");

tfhe/js_on_wasm_tests/test-hlapi-signed.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ test("hlapi_compressed_public_client_int8_big", (t) => {
100100

101101
test("hlapi_public_key_encrypt_decrypt_int32_small", (t) => {
102102
let params_name_small =
103-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
103+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
104104
let params_small = new ShortintParameters(params_name_small);
105105
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
106106

@@ -127,7 +127,7 @@ test("hlapi_public_key_encrypt_decrypt_int32_small", (t) => {
127127

128128
test("hlapi_decompress_public_key_then_encrypt_decrypt_int32_small", (t) => {
129129
let params_name_small =
130-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
130+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
131131
let params_small = new ShortintParameters(params_name_small);
132132
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
133133

@@ -213,7 +213,7 @@ test("hlapi_client_key_encrypt_decrypt_int128_big", (t) => {
213213

214214
test("hlapi_client_key_encrypt_decrypt_int128_small", (t) => {
215215
let params_name_small =
216-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
216+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
217217
let params_small = new ShortintParameters(params_name_small);
218218
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
219219

@@ -323,7 +323,7 @@ test("hlapi_client_key_encrypt_decrypt_int256_big", (t) => {
323323

324324
test("hlapi_client_key_encrypt_decrypt_int256_small", (t) => {
325325
let params_name_small =
326-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
326+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
327327
let params_small = new ShortintParameters(params_name_small);
328328
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
329329

@@ -384,7 +384,7 @@ test("hlapi_client_key_encrypt_decrypt_int256_small", (t) => {
384384

385385
test("hlapi_decompress_public_key_then_encrypt_decrypt_int256_small", (t) => {
386386
let params_name_small =
387-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
387+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
388388
let params_small = new ShortintParameters(params_name_small);
389389
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
390390

@@ -412,7 +412,7 @@ test("hlapi_decompress_public_key_then_encrypt_decrypt_int256_small", (t) => {
412412

413413
test("hlapi_public_key_encrypt_decrypt_int256_small", (t) => {
414414
let params_name_small =
415-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
415+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
416416
let params_small = new ShortintParameters(params_name_small);
417417
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
418418

@@ -470,7 +470,7 @@ function hlapi_compact_public_key_encrypt_decrypt_int32_single(config) {
470470

471471
test("hlapi_compact_public_key_encrypt_decrypt_int32_big_single", (t) => {
472472
const block_params = new ShortintParameters(
473-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_128,
473+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_128,
474474
);
475475
let config = TfheConfigBuilder.default()
476476
.use_custom_parameters(block_params)
@@ -481,7 +481,7 @@ test("hlapi_compact_public_key_encrypt_decrypt_int32_big_single", (t) => {
481481

482482
test("hlapi_compact_public_key_encrypt_decrypt_int32_small_single", (t) => {
483483
const block_params = new ShortintParameters(
484-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
484+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
485485
);
486486
let config = TfheConfigBuilder.default()
487487
.use_custom_parameters(block_params)

tfhe/js_on_wasm_tests/test-hlapi-unsigned.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test("hlapi_key_gen_big", (t) => {
8080

8181
test("hlapi_key_gen_small", (t) => {
8282
let params_name_small =
83-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
83+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
8484
let params_small = new ShortintParameters(params_name_small);
8585
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
8686

@@ -151,7 +151,7 @@ test("hlapi_compressed_public_client_uint8_big", (t) => {
151151

152152
test("hlapi_public_key_encrypt_decrypt_uint32_small", (t) => {
153153
let params_name_small =
154-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
154+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
155155
let params_small = new ShortintParameters(params_name_small);
156156
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
157157

@@ -178,7 +178,7 @@ test("hlapi_public_key_encrypt_decrypt_uint32_small", (t) => {
178178

179179
test("hlapi_decompress_public_key_then_encrypt_decrypt_uint32_small", (t) => {
180180
let params_name_small =
181-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
181+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
182182
let params_small = new ShortintParameters(params_name_small);
183183
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
184184

@@ -264,7 +264,7 @@ test("hlapi_client_key_encrypt_decrypt_uint128_big", (t) => {
264264

265265
test("hlapi_client_key_encrypt_decrypt_uint128_small", (t) => {
266266
let params_name_small =
267-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
267+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
268268
let params_small = new ShortintParameters(params_name_small);
269269
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
270270

@@ -365,7 +365,7 @@ test("hlapi_client_key_encrypt_decrypt_uint256_big", (t) => {
365365

366366
test("hlapi_client_key_encrypt_decrypt_uint256_small", (t) => {
367367
let params_name_small =
368-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
368+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
369369
let params_small = new ShortintParameters(params_name_small);
370370
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
371371

@@ -417,7 +417,7 @@ test("hlapi_client_key_encrypt_decrypt_uint256_small", (t) => {
417417

418418
test("hlapi_decompress_public_key_then_encrypt_decrypt_uint256_small", (t) => {
419419
let params_name_small =
420-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
420+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
421421
let params_small = new ShortintParameters(params_name_small);
422422
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
423423

@@ -445,7 +445,7 @@ test("hlapi_decompress_public_key_then_encrypt_decrypt_uint256_small", (t) => {
445445

446446
test("hlapi_public_key_encrypt_decrypt_uint256_small", (t) => {
447447
let params_name_small =
448-
ShortintParametersName.V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
448+
ShortintParametersName.V1_2_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128;
449449
let params_small = new ShortintParameters(params_name_small);
450450
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
451451

0 commit comments

Comments
 (0)