Python wrapper around implementation of the Classic McEliece cryptosystem.
To access the Python functions provided by mceliece, import the library (for, e.g., mceliece6960119):
from mceliece import mceliece6960119
To generate a key pair:
pk,sk = mceliece6960119.keypair()
To generate a ciphertext c encapsulating a randomly generated session key k:
c,k = mceliece6960119.enc(pk)
To recover a session key from a ciphertext:
k = mceliece6960119.dec(c,sk)
As a larger example, the following test script creates a key pair, creates a ciphertext and session key, and then recovers the session key from the ciphertext:
import mceliece
kem = mceliece.mceliece6960119
pk,sk = kem.keypair()
c,k = kem.enc(pk)
assert k == kem.dec(c,sk)
Metadata
Release files for mceliece 20241009.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mceliece-20241009.1.tar.gz | 10.4 kB | Without provenance | Details for mceliece-20241009.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mceliece-20241009.1-py3-none-any.whl | Python 3 | none | any | Details for mceliece-20241009.1-py3-none-any.whl |
Total release size: 20.0 kB
Release files / mceliece-20241009.1.tar.gz
| Download URL | mceliece-20241009.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
013fbe43d95c0eced26c1fb0f6c25d823e84ac963b25853680506118d33c5cbb
|
|
BLAKE2b-256 checksum How to use checksums |
478d84cc40ff178668c0155aff8b1110d87ef594253d3bd17ed594b3dfd037b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / mceliece-20241009.1-py3-none-any.whl
| Download URL | mceliece-20241009.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e01262b4edab34344016367b4e4f444b26f0d0c3eda114fee7d6497449f378fc
|
|
BLAKE2b-256 checksum How to use checksums |
9599ec72fd16da4d7314d9cb87a0096db876a60cc53017ff2dd031fd612d8776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for mceliece 20241009.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.