Skip to content

xueyumusic/HEIDE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#    Copyright (C) 2015  Grant Frame
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

--------------------------------------------------------------------------------
HOW TO INSTALL
1. Download and build HElib (https://github.com/shaih/HElib)
	a. install ntl (version 9.0.0) as a shared library
	b. copy to /usr/lib
		sudo ln -s /usr/local/lib/libntl.so.10 /usr/lib/libntl.so.10

2. Set HELIB_BASE environment variable

	export HELIB_BASE=<HElib src folder>

3. Install boost
	
	sudo apt-get install libboost-all-dev

4. cd into the BGV_HE folder

	cd ./BGV_HE/

5. Compile the BGV_HE class and the tests. To run all tests run make check 

	make
	make tests
	make check (optional - this will take a long time to run)

6. Install Cython
	
	sudo pip install cython

7. Build and Install PyHE

	cd ../PyHE	
	sudo HELIB_BASE=$HELIB_BASE python setup.py install
	sudo ln -s /usr/local/lib/python2.7/dist-packages/PyHE.so /usr/local/lib/python3.4/dist-packages/PyHE.so


8. Install tkinter
	
	sudo apt-get install python-tk

9. Install psutil

	sudo apt-get install python3-dev
	sudo pip3 install psutil

10. Install PIL

	sudo apt-get install python3-imaging
	sudo apt-get install python3-imaging-tk 

11. Set HEIDE parameters by altering heide.config in HEIDE directory.


12. Run HEIDE

	cd ../HEIDE
	sudo ./heide.sh
--------------------------------------------------------------------------------

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 73.4%
  • C++ 23.8%
  • Makefile 2.3%
  • Shell 0.5%