{"id":13629910,"url":"https://github.com/quarkslab/NFLlib","last_synced_at":"2025-04-17T13:30:47.358Z","repository":{"id":61311693,"uuid":"46931019","full_name":"quarkslab/NFLlib","owner":"quarkslab","description":"NTT-based Fast Lattice library","archived":false,"fork":false,"pushed_at":"2022-10-14T22:25:00.000Z","size":269,"stargazers_count":162,"open_issues_count":10,"forks_count":52,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-08-01T22:44:49.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quarkslab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-26T14:24:36.000Z","updated_at":"2024-07-18T17:28:27.000Z","dependencies_parsed_at":"2022-10-14T21:08:27.136Z","dependency_job_id":null,"html_url":"https://github.com/quarkslab/NFLlib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quarkslab%2FNFLlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quarkslab%2FNFLlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quarkslab%2FNFLlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quarkslab%2FNFLlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quarkslab","download_url":"https://codeload.github.com/quarkslab/NFLlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223757057,"owners_count":17197489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T22:01:23.854Z","updated_at":"2024-11-08T21:30:26.248Z","avatar_url":"https://github.com/quarkslab.png","language":"C++","funding_links":[],"categories":["C++","Libraries"],"sub_categories":["[Sunscreen](https://sunscreen.tech/)"],"readme":"# NFLlib\nAn NTT-based Fast Lattice library\n\n## Goal\n\nNFLlib is an efficient and open-source C++ library dedicated to ideal lattice cryptography. It is specialized in polynomial rings quotiented by a cyclotomic polynomial whose degree is a power of two. The library combines algorithmic optimizations (Chinese Remainder Theorem, optimized Number Theoretic Transform) together with programming optimization techniques (SSE and AVX2 specializations, C++ expression templates, etc.).\n\n## License\n\nMIT\n\n# Install Steps\n\nYou need cmake, GMP and Mpfr, as well as a C++11 compiler to build NFLLib.\n\nTo build, test and install a production version of nfllib, run the following:\n\n```\n$\u003e mkdir _build\n$\u003e cd _build\n$\u003e cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/nfllib\n$\u003e make\n$\u003e make test\n$\u003e make install\n```\n\nThe following CMake options are relevant:\n\nOption                              | Description\n------------------------------------|---------------------------------\n`-DCMAKE_INSTALL_PREFIX=\u003cvalue\u003e`    | Where the library is installed\n`-DCMAKE_BUILD_TYPE=Release\\|Debug` | The basic compiler configuration\n`-DNFL_OPTIMIZED=ON`                | Enable SSE/AVX-based optimization\n\n# SSE/AVX optimizations\n\nTo use SSE-based optimizations, compile the code with the flags `-DNFL_OPTIMIZED=ON -DNTT_SSE`.\n\nTo use AVX-based optimizations, compile the code with the flags `-DNFL_OPTIMIZED=ON -DNTT_AVX2`.\n\n# Getting started\n\nIn order to get the documentation you need Sphinx and the Alabaster theme. Installation procedures are described at (we recommend using pip for both installations) :\n\n  * http://www.sphinx-doc.org/en/stable/install.html\n  * https://anaconda.org/pypi/alabaster\n\nAfter getting both Sphinx and the Alabaster theme build the documentation and show it with:\n\n```\n$\u003e sphinx-build . build\n$\u003e your_favorite_browser build/nfl.html\n```\n\nIf you have issues building the documentation please contact the developper team.\n\n# Contributors\n\nThis library is an extension/evolution of the NTTTools module from [XPIR](https://github.com/XPIR-team/XPIR) done by members of [CryptoExperts](https://www.cryptoexperts.com), [INP ENSEEIHT](http://www.enseeiht.com), [Quarkslab](http://www.quarkslab.com) (in alphabetical order).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquarkslab%2FNFLlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquarkslab%2FNFLlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquarkslab%2FNFLlib/lists"}