This repository contains an example of using the liboqs-node library for key encapsulation mechanisms (KEMs) based on post-quantum cryptography.
Before running the example, ensure you have the following installed:
- Ubuntu Linux 20.04.6
- Python 3
- Node.js (version 14 or higher)
- npm (Node Package Manager)
- Git
- OpenSSL (version 1.1.1 or higher)
Open your terminal and run the following command to install the necessary dependencies:
sudo apt install astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz python3-yaml valgrind gitClone the liboqs repository and build the library:
git clone -b main https://github.com/open-quantum-safe/liboqs.git
cd liboqs
mkdir build && cd build
cmake -GNinja ..
ninjaTo install the built library, run:
ninja installgit clone https://github.com/sneh2102/liboqs-node-example.git
cd liboqs-node-example.
Install all the dependencies
npm installnode Kems.js