Skip to content

Commit

Permalink
add another doctest to catch this stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bencrts committed May 8, 2024
1 parent 1444972 commit 536fb55
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/schemes/hes.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Homomorphic Encryption Standard
Homomorphic Encryption Parameters
===============================

::
Expand All @@ -19,3 +19,11 @@ Homomorphic Encryption Standard
>>> LWE.primal_hybrid(HESv111024128ternary)
rop: ≈2^182.5, red: ≈2^181.7, svp: ≈2^181.4, β: 345, η: 2, ζ: 134, |S|: ≈2^212.4, d: 1915, prob: ≈2^-51.2, ↻: ≈2^53.4, tag: hybrid
::

>>> from estimator import *
>>> from estimator.schemes import SEAL22_8192
>>> SEAL22_8192
LWEParameters(n=8192, q=107839786668602559178668060348078522694548577690162289924414373888001, Xs=D(σ=0.82), Xe=D(σ=3.19), m=+Infinity, tag='SEAL22_8192')
>>> LWE.dual_hybrid(SEAL22_8192)
rop: ≈2^121.8, red: ≈2^121.8, guess: ≈2^107.6, β: 306, p: 3, ζ: 5, t: 50, β': 331, N: ≈2^67.3, m: ≈2^13.0

0 comments on commit 536fb55

Please sign in to comment.