python3-ntruprime

microlibrary for Streamlined NTRU Prime - Python wrapper

Description

Python wrapper around implementation of the Streamlined NTRU Prime cryptosystem. The Python API for ntruprime provides the functions: sntrup{653,761,857,953,1013,1277}.keypair() sntrup{653,761,857,953,1013,1277}.enc() sntrup{653,761,857,953,1013,1277}.dec()

The library has a very simple stateless API. As an example, the following script creates a key pair, creates a ciphertext and session key, and then recovers the session key from the ciphertext:

import ntruprime kem = ntruprime.sntrup1277 pk,sk = kem.keypair() c,k = kem.enc(pk) assert k == kem.dec(c,sk)

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/janmojzis/python-ntruprime


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-ntruprime