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
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

  1. import os
  2. # Save the original working directory
  3. _cname = os.getcwd()
  4. #print('Original: %s' % os.getcwd())
  5. # Define the right working directory for the module
  6. abspath = os.path.abspath(__file__)
  7. _dname = os.path.dirname(abspath)
  8. os.chdir(_dname)
  9. #print('New: %s' % os.getcwd())
  10. # Import the module
  11. from sage.all_cmdline import *
  12. _sage_const_1 = Integer(1); _sage_const_0 = Integer(0); _sage_const_2 = Integer(2); _sage_const_4 = Integer(4); _sage_const_16 = Integer(16); _sage_const_8 = Integer(8); _sage_const_3 = Integer(3)
  13. load("instance_gen.sage")
  14. # Come back with the original working directory
  15. os.chdir(_cname)
  16. #print('Come back: %s' % os.getcwd())