Skip to content

Commit

Permalink
hybrid attacks seems to be sevior issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
nindanaoto committed Sep 23, 2022
1 parent b864083 commit ee7a581
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "python/lattice-estimator"]
path = python/lattice-estimator
url = https://github.com/malb/lattice-estimator.git
4 changes: 2 additions & 2 deletions python/CCbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def romnoisecalc(brP,ikP,privksP,ROMaddress):
# blindrotate(lvl02param,dists)
# GateBootstrapping(lvl01param,lvl10param,dists)
# GateBootstrapping(lvl12param,lvl21param,dists)
# privatekeyswitching(lvl11param,dists)
privatekeyswitching(lvl21param,dists)
privatekeyswitching(lvl11param,dists)
# privatekeyswitching(lvl21param,dists)
# privatekeyswitching(lvl22param,dists)
# annihilatekeyswitching(lvl2param,dists)
# CircuitBootstrapping(lvl02param,lvl21param,dists)
Expand Down
1 change: 1 addition & 0 deletions python/lattice-estimator
Submodule lattice-estimator added at 09e235
12 changes: 12 additions & 0 deletions python/newTFHE.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/python3
import importlib
estimator = importlib.import_module(".estimator","lattice-estimator")
# param = estimator.schemes.TFHE630
param = estimator.lwe_parameters.LWEParameters(
n=586,
q=2 ** 32,
Xs=estimator.nd.NoiseDistribution.UniformMod(2),
Xe=estimator.nd.NoiseDistribution.DiscreteGaussian(stddev=0.000_092_511_997_467_675_6 * 2 ** 32),
tag="TFHE586",
)
r = estimator.LWE.estimate(param)

0 comments on commit ee7a581

Please sign in to comment.