This repository isolates the PASTA symmetric cipher of the hybrid-HE-framework and bundles it as a static library.
This project is not optimized and it's not ready for proudction, use it at your own risk.
Requirements:
- x86_64 architecture (with AVX2 instruction set)
- cmake
- autoconf
- autotool
- m4ri, release-20200125
To compile the framework, execute the following commands from the root directory:
mkdir build
cd build
cmake ..
make -j4
Here you'll find how to install the external depenceies
This as a fast artimetic library, to install it run:
mkdir m4ri_temp && \
cd m4ri_temp && \
wget https://github.com/malb/m4ri/archive/refs/tags/release-20200125.tar.gz && \
tar xf release-20200125.tar.gz && \
cd m4ri-release-20200125 && \
autoreconf --install && \
rm -rf installed && \
mkdir installed && \
./configure --prefix=`pwd`/installed && \
make -j4 && \
make install && \
cd ../../..
After building the library, set:
M4RI_PREFIX
to the installed folder, it might be at../m4ri-release-20200125/installed
.M4RI_LIB
to point to the compiled library, it might be at${M4RI_PREFIX}/lib/libm4ri.so
.M4RI_INCLUDE_DIR
to point to library header, it might be at${M4RI_PREFIX}/include
To build the Dockerfile
> docker buildx build --platform linux/amd64 -t pasta .
> docker run --rm -it pasta
There is also a experimental build (at experimental-build
branch) which disables optimizations and it's not tied to the x86_64 architecture.