Fork of the official github repository of the framework Leaky-LWE-Estimator, a Sage Toolkit to attack and estimate the hardness of LWE with Side Information. https://github.com/lducas/leaky-LWE-Estimator
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

load_strategies.sage 478B

  1. # Apparently the internal loader for
  2. # strategies of fplll/fpylll is broken through sage
  3. # Doing that by hand...
  4. import json
  5. from fpylll.fplll.bkz_param import Strategy
  6. with open("../framework/bkz_strat.json") as json_data:
  7. data = json.load(json_data)
  8. strategies = 91 * [None]
  9. for datum in data:
  10. b = datum["block_size"]
  11. prun = datum["pruning_parameters"]
  12. prep = datum["preprocessing_block_sizes"]
  13. strat = Strategy(b, prep, prun)
  14. strategies[b] = strat