Commit fa37e62e authored by Jakub Klemsa's avatar Jakub Klemsa
Browse files

Added also 112-bit params: orig & new. Deleted old manual results.

parent 6d42e369
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
---
- :params:
:lambda: 112
:pi: 5
:_2Delta: 20
:N: 1024
:n: 680
:k: 1
:gamma: 7
:l: 3
:kappa: 1
:t: 16
:logAKSn: -18
:logABKnn: -29
:v0_corr: 0
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 73.592
:br_time_min_ms: 73.376
:ks_time_median_ms: 29.406
:ks_time_min_ms: 29.374
:key_size:
:sk_size: 1436
:bsk_size: 133693496
:ksk_size: 89260088
:noise:
:meas_V_0: 0.0000000897971440389788
:calc_V_0_concrete: 0.0000001555461703143616
:calc_V_0_formula: 0.00000039701490095467307
:noise_max_abs: 0.001022111310396083
- :params:
:lambda: 128
:pi: 5
:_2Delta: 20
:N: 2048
:n: 766
:k: 1
:gamma: 21
:l: 1
:kappa: 3
:t: 5
:logAKSn: -18
:logABKnn: -48
:v0_corr: 2.7
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 101.1495
:br_time_min_ms: 100.772
:ks_time_median_ms: 20.755
:ks_time_min_ms: 20.732
:key_size:
:sk_size: 1608
:bsk_size: 100401208
:ksk_size: 62832696
:noise:
:meas_V_0: 0.000000731780835152817
:calc_V_0_concrete: 0.0000009139281094879456
:calc_V_0_formula: 0.000002950284169855877
:noise_max_abs: 0.0024379727884060835
---
- :params:
:lambda: 128
:pi: 2
:_2Delta: 2
:N: 1024
:n: 630
:k: 1
:gamma: 7
:l: 3
:kappa: 2
:t: 8
:logAKSn: -15
:logABKnn: -25
:v0_corr: 0
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 67.725
:br_time_min_ms: 67.505
:ks_time_median_ms: 13.681
:ks_time_min_ms: 13.659
:key_size:
:sk_size: 1336
:bsk_size: 123863096
:ksk_size: 41353272
:noise:
:meas_V_0: 0.00001258375529170432
:calc_V_0_concrete: 0.00001615458840357557
:calc_V_0_formula: 0.00004469548673569079
:noise_max_abs: 0.012791814442991545
- :params:
:lambda: 128
:pi: 2
:_2Delta: 2
:N: 1024
:n: 554
:k: 1
:gamma: 8
:l: 2
:kappa: 3
:t: 3
:logAKSn: -13
:logABKnn: -24
:v0_corr: 2.3
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 47.757
:br_time_min_ms: 47.587
:ks_time_median_ms: 4.515
:ks_time_min_ms: 4.505
:key_size:
:sk_size: 1182
:bsk_size: 72613944
:ksk_size: 13639736
:noise:
:meas_V_0: 0.0004663658757057476
:calc_V_0_concrete: 0.000464073988647821
:calc_V_0_formula: 0.001874121488071978
:noise_max_abs: 0.06755623582060111
---
- :params:
:lambda: 128
:pi: 5
:_2Delta: 2
:N: 1024
:n: 750
:k: 1
:gamma: 7
:l: 3
:kappa: 2
:t: 7
:logAKSn: -18
:logABKnn: -25
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 82.6695
:br_time_min_ms: 82.393
:ks_time_median_ms: 17.354
:ks_time_min_ms: 17.258
:key_size:
:sk_size: 1576
:bsk_size: 147456056
:ksk_size: 43065400
:noise:
:meas_V_0: 0.00000648746128203342
:calc_V_0_concrete: 0.000005911315649124542
:calc_V_0_formula: 0.000018178411551161844
:noise_max_abs: 0.01008089751279128
- :params:
:lambda: 128
:pi: 5
:_2Delta: 2
:N: 1024
:n: 681
:k: 1
:gamma: 5
:l: 4
:kappa: 2
:t: 7
:logAKSn: -16
:logABKnn: -24
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 90.2555
:br_time_min_ms: 89.927
:ks_time_median_ms: 15.718
:ks_time_min_ms: 15.661
:key_size:
:sk_size: 1439
:bsk_size: 178520120
:ksk_size: 39108664
:noise:
:meas_V_0: 0.0000039647905898975205
:calc_V_0_concrete: 0.000004383403772105036
:calc_V_0_formula: 0.000012861952427556389
:noise_max_abs: 0.006277812776560591
- :params:
:lambda: 128
:pi: 5
:_2Delta: 2
:N: 1024
:n: 724
:k: 1
:gamma: 6
:l: 3
:kappa: 2
:t: 8
:logAKSn: -17
:logABKnn: -24
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 79.8205
:br_time_min_ms: 79.565
:ks_time_median_ms: 19.096
:ks_time_min_ms: 19.012
:key_size:
:sk_size: 1523
:bsk_size: 142344248
:ksk_size: 47513656
:noise:
:meas_V_0: 0.0000062450164466660365
:calc_V_0_concrete: 0.000006572440421829621
:calc_V_0_formula: 0.000020849358406849205
:noise_max_abs: 0.008750507049980111
- :params:
:lambda: 128
:pi: 5
:_2Delta: 2
:N: 1024
:n: 724
:k: 1
:gamma: 6
:l: 3
:kappa: 2
:t: 7
:logAKSn: -17
:logABKnn: -24
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 79.765
:br_time_min_ms: 79.523
:ks_time_median_ms: 16.689
:ks_time_min_ms: 16.651
:key_size:
:sk_size: 1523
:bsk_size: 142344248
:ksk_size: 41574456
:noise:
:meas_V_0: 0.000005649101801669811
:calc_V_0_concrete: 0.000006632045066605012
:calc_V_0_formula: 0.000021505009499378502
:noise_max_abs: 0.007316057947604527
- :params:
:lambda: 128
:pi: 5
:_2Delta: 2
:N: 1024
:n: 766
:k: 1
:gamma: 5
:l: 4
:kappa: 2
:t: 8
:logAKSn: -18
:logABKnn: -24
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 101.565
:br_time_min_ms: 101.261
:ks_time_median_ms: 20.238
:ks_time_min_ms: 20.129
:key_size:
:sk_size: 1608
:bsk_size: 200802360
:ksk_size: 50266168
:noise:
:meas_V_0: 0.0000023155016943770018
:calc_V_0_concrete: 0.0000021246279781432045
:calc_V_0_formula: 0.000006422108981496422
:noise_max_abs: 0.004290253748306012
- :params:
:lambda: 128
:pi: 5
:_2Delta: 2
:N: 2048
:n: 724
:k: 1
:gamma: 19
:l: 1
:kappa: 3
:t: 5
:logAKSn: -17
:logABKnn: -48
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 95.486
:br_time_min_ms: 95.194
:ks_time_median_ms: 23.9185
:ks_time_min_ms: 23.792
:key_size:
:sk_size: 1523
:bsk_size: 94896184
:ksk_size: 59392056
:noise:
:meas_V_0: 0.0000030801829183558905
:calc_V_0_concrete: 0.000003582707852463803
:calc_V_0_formula: 0.000011362796456637625
:noise_max_abs: 0.005071213827533335
---
- :params:
:lambda: 128
:pi: 6
:_2Delta: 2
:N: 2048
:n: 750
:k: 1
:gamma: 7
:l: 3
:kappa: 2
:t: 7
:logAKSn: -18
:logABKnn: -52
:v0_corr: 0
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 165.2515
:br_time_min_ms: 164.717
:ks_time_median_ms: 34.379
:ks_time_min_ms: 34.121
:key_size:
:sk_size: 1576
:bsk_size: 294912056
:ksk_size: 86130744
:noise:
:meas_V_0: 0.000000615325837047728
:calc_V_0_concrete: 0.0000006453819499559667
:calc_V_0_formula: 0.000002829167783602317
:noise_max_abs: 0.002634838828120118
- :params:
:lambda: 128
:pi: 6
:_2Delta: 2
:N: 2048
:n: 766
:k: 1
:gamma: 21
:l: 1
:kappa: 3
:t: 5
:logAKSn: -18
:logABKnn: -48
:v0_corr: 2
:bench:
:n_runs: 500
:time:
:br_time_median_ms: 99.481
:br_time_min_ms: 99.126
:ks_time_median_ms: 25.068
:ks_time_min_ms: 25.013
:key_size:
:sk_size: 1608
:bsk_size: 100401208
:ksk_size: 62832696
:noise:
:meas_V_0: 0.0000008729499203355438
:calc_V_0_concrete: 0.0000009139281094879456
:calc_V_0_formula: 0.000002950284169855877
:noise_max_abs: 0.003068071029989381
......@@ -98,118 +98,307 @@ pub const BROT_NOISE_FACTOR: usize = 3;
//
// Manual Params
//
#[cfg(feature = "manual")]
pub const MAN_PARAMS: [[Params; 3]; 4] = [
//~ #[cfg(feature = "manual")]
//~ pub const MAN_PARAMS: [[Params; 3]; 4] = [
// -----------------------------------------------------------------------------
// Binary TFHE: 2|2
[
// 80-bit (new)
Params {
lambda: 80,
s_lambda: 0.0,
bit_precision: 2,
quad_weight: 2,
lwe_params: LWEParams {
dimension: 316,
log2_std_dev: -12,
},
rlwe_params: RLWEParams {
polynomial_size: 512,
dimension: 1,
log2_std_dev: -19,
},
bs_base_log: 5,
bs_level: 3,
ks_base_log: 2,
ks_level: 4,
v0_corr: 0.0,
},
// 128-bit (new)
Params {
lambda: 128,
s_lambda: 0.0,
bit_precision: 2,
quad_weight: 2,
lwe_params: LWEParams {
dimension: 520,
log2_std_dev: -12,
},
rlwe_params: RLWEParams {
polynomial_size: 1024,
dimension: 1,
log2_std_dev: -23,
},
bs_base_log: 7,
bs_level: 2,
ks_base_log: 2,
ks_level: 5,
v0_corr: 0.0,
},
// 128-bit (orig. by TFHE Library)
Params {
lambda: 128,
s_lambda: 0.0,
bit_precision: 2,
quad_weight: 2,
lwe_params: LWEParams {
dimension: 630,
log2_std_dev: -15,
},
rlwe_params: RLWEParams {
polynomial_size: 1024,
dimension: 1,
log2_std_dev: -25,
},
bs_base_log: 7,
bs_level: 3,
ks_base_log: 2,
ks_level: 8,
v0_corr: 0.0,
},
],
//~ // -----------------------------------------------------------------------------
//~ // Binary TFHE: 2|2
//~ [
//~ // 80-bit (new)
//~ Params {
//~ lambda: 80,
//~ s_lambda: 0.0,
//~ bit_precision: 2,
//~ quad_weight: 2,
//~ lwe_params: LWEParams {
//~ dimension: 316,
//~ log2_std_dev: -12,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 512,
//~ dimension: 1,
//~ log2_std_dev: -19,
//~ },
//~ bs_base_log: 5,
//~ bs_level: 3,
//~ ks_base_log: 2,
//~ ks_level: 4,
//~ v0_corr: 0.0,
//~ },
//~ // 128-bit (new)
//~ Params {
//~ lambda: 128,
//~ s_lambda: 0.0,
//~ bit_precision: 2,
//~ quad_weight: 2,
//~ lwe_params: LWEParams {
//~ dimension: 520,
//~ log2_std_dev: -12,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 1024,
//~ dimension: 1,
//~ log2_std_dev: -23,
//~ },
//~ bs_base_log: 7,
//~ bs_level: 2,
//~ ks_base_log: 2,
//~ ks_level: 5,
//~ v0_corr: 0.0,
//~ },
//~ // 128-bit (orig. by TFHE Library)
//~ Params {
//~ lambda: 128,
//~ s_lambda: 0.0,
//~ bit_precision: 2,
//~ quad_weight: 2,
//~ lwe_params: LWEParams {
//~ dimension: 630,
//~ log2_std_dev: -15,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 1024,
//~ dimension: 1,
//~ log2_std_dev: -25,
//~ },
//~ bs_base_log: 7,
//~ bs_level: 3,
//~ ks_base_log: 2,
//~ ks_level: 8,
//~ v0_corr: 0.0,
//~ },
//~ ],
//~ // -----------------------------------------------------------------------------
//~ // Parmesan: 5|20
//~ [
//~ // 80-bit (new)
//~ Params {
//~ lambda: 80,
//~ s_lambda: 0.0,
//~ bit_precision: 5,
//~ quad_weight: 20,
//~ lwe_params: LWEParams {
//~ dimension: 474,
//~ log2_std_dev: -18,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 1024,
//~ dimension: 1,
//~ log2_std_dev: -38,
//~ },
//~ bs_base_log: 19,
//~ bs_level: 1,
//~ ks_base_log: 3,
//~ ks_level: 5,
//~ v0_corr: 0.0,
//~ },
//~ // 128-bit (new)
//~ Params {
//~ lambda: 128,
//~ s_lambda: 0.0,
//~ bit_precision: 5,
//~ quad_weight: 20,
//~ lwe_params: LWEParams {
//~ dimension: 747,
//~ log2_std_dev: -18,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 2048,
//~ dimension: 1,
//~ log2_std_dev: -49,
//~ },
//~ bs_base_log: 24,
//~ bs_level: 1,
//~ ks_base_log: 3,
//~ ks_level: 5,
//~ v0_corr: 0.0,
//~ },
//~ // 112-bit (orig. by Parmesan Lib.)
//~ Params {
//~ lambda: 112,
//~ s_lambda: 0.0,
//~ bit_precision: 5,
//~ quad_weight: 20,
//~ lwe_params: LWEParams {
//~ dimension: 680,
//~ log2_std_dev: -18,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 1024,
//~ dimension: 1,
//~ log2_std_dev: -29,
//~ },
//~ bs_base_log: 7,
//~ bs_level: 3,
//~ ks_base_log: 1,
//~ ks_level: 16,
//~ v0_corr: 0.0,
//~ },
//~ ],
//~ // -----------------------------------------------------------------------------
//~ // Z/8Z Demo: 5|2
//~ [
//~ // 80-bit (new)
//~ Params {
//~ lambda: 80,
//~ s_lambda: 0.0,
//~ bit_precision: 5,
//~ quad_weight: 2,
//~ lwe_params: LWEParams {
//~ dimension: 422,
//~ log2_std_dev: -16,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 1024,
//~ dimension: 1,
//~ log2_std_dev: -38,
//~ },
//~ bs_base_log: 19,
//~ bs_level: 1,
//~ ks_base_log: 3,
//~ ks_level: 4,
//~ v0_corr: 0.0,
//~ },
//~ // 128-bit (new)
//~ Params {
//~ lambda: 128,
//~ s_lambda: 0.0,
//~ bit_precision: 5,
//~ quad_weight: 2,
//~ lwe_params: LWEParams {
//~ dimension: 712,
//~ log2_std_dev: -17,
//~ },
//~ rlwe_params: RLWEParams {
//~ polynomial_size: 1024,
//~ dimension: 1,