Skip to content

fedejinich/pasta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PASTA Symmetric Cipher

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.

Build

Requirements:

To compile the framework, execute the following commands from the root directory:

mkdir build
cd build
cmake ..
make -j4

Install Dependencies

Here you'll find how to install the external depenceies

m4ri (release-20200125)

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

Dockerfile

To build the Dockerfile

> docker buildx build --platform linux/amd64 -t pasta .
> docker run --rm -it pasta

Experimental Build

There is also a experimental build (at experimental-build branch) which disables optimizations and it's not tied to the x86_64 architecture.

About

PASTA ciphers as static library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published