chore(shortint): update classic gaussian param

This commit is contained in:
Nicolas Sarlin
2024-12-19 19:06:22 +01:00
committed by Nicolas Sarlin
parent 58801cf7a5
commit 8ee1bdd9a9
142 changed files with 2903 additions and 1613 deletions

View File

@@ -47,7 +47,7 @@ function append_param_name(bench_results, params_name) {
async function compressedPublicKeyTest() {
let params_name_small =
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64;
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64;
let params_small = new ShortintParameters(params_name_small);
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
@@ -79,7 +79,7 @@ async function compressedPublicKeyTest() {
async function publicKeyTest() {
let params_name_small =
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64;
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64;
let params_small = new ShortintParameters(params_name_small);
let config = TfheConfigBuilder.with_custom_parameters(params_small).build();
@@ -160,7 +160,7 @@ async function compactPublicKeyBench32BitOnConfig(config) {
async function compactPublicKeyBench32BitBig() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
@@ -173,7 +173,7 @@ async function compactPublicKeyBench32BitBig() {
async function compactPublicKeyBench32BitSmall() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
@@ -476,7 +476,7 @@ async function compactPublicKeyZeroKnowledgeTest() {
async function compressedCompactPublicKeyTest256BitBig() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
@@ -486,7 +486,7 @@ async function compressedCompactPublicKeyTest256BitBig() {
async function compressedCompactPublicKeyTest256BitSmall() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
@@ -557,7 +557,7 @@ async function compactPublicKeyBench256BitOnConfig(config) {
async function compactPublicKeyBench256BitBig() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
@@ -570,7 +570,7 @@ async function compactPublicKeyBench256BitBig() {
async function compactPublicKeyBench256BitSmall() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
@@ -617,7 +617,7 @@ async function compressedServerKeyBenchConfig(config) {
async function compressedServerKeyBenchMessage1Carry1() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
@@ -630,7 +630,7 @@ async function compressedServerKeyBenchMessage1Carry1() {
async function compressedServerKeyBenchMessage2Carry2() {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
ShortintParametersName.V0_11_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64,
);
let config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)