A SageMath library for cryptographic functions
Project description
SageMath Library for Cryptographic Functions
A SageMath library for cryptographic functions, focusing on quadratic APN (Almost Perfect Nonlinear) functions.
The library provides tools for:
- converting between different representations of a function
- generating known infinite families of quadratic APN polynomials in univariate form
- deciding whether a function belongs to these families
Features
- Conversion routines between univariate polynomial representation and other common representations of vectorial Boolean functions:
- truth tables
- quadratic matrices
- sequences
- bivariate forms
- trivariate forms
- Implementations of known infinite families of quadratic APN functions in univariate form
- Membership testing for identifying whether a function belongs to a known family
Requirements
- SageMath 10.8 +
- Python 3.9 +
Installation
From PyPI (recommended)
In a Sage terminal write
pip install sagemath-cryptographic-functions-library
Or from a regular terminal write
sage --pip install sagemath-cryptographic-functions-library
From GitHub
In a Sage terminal write
pip install git+https://github.com/hoeeg/SageMath_library_for_cryptographic_functions.git
Or in regular terminal write
sage --pip install git+https://github.com/hoeeg/SageMath_library_for_cryptographic_functions.git
Usage
The package can either be imported by module
from sagemath_cryptographic_functions_library import conversions, families, membership
families.family_4(3)
...
or by importing functions directly
from sagemath_cryptographic_functions_library import family_4
family_4(3)
...
Using Sage Online
You can try Sage online without installing anything locally from any of
For a local install, the Sage Installation Guide walks through the available options.
More about Sage or how to download it, can be found in its Documentation.
Layout
├── sagemath_cryptographic_functions_library/
│ ├── __init__.py
│ ├── conversions.py Conversions between representations
│ ├── families.py Known APN family constructions
│ ├── helpers.py Finite field utility functions
│ └── membership.py Membership testing algorithms
├── README.md This file
├── pyproject.toml Build configuration
└── LICENCE Copyright information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sagemath_cryptographic_functions_library-0.2.0.tar.gz.
File metadata
- Download URL: sagemath_cryptographic_functions_library-0.2.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f74e43f89e354255f860fdf22ecbc48b117225d3678cbbfa2b6a6700b79277aa
|
|
| MD5 |
e15459560ada874fee4cb69f10c58e14
|
|
| BLAKE2b-256 |
ca9a857c5391042f1c41bdc7fe09ef659f089e384c7c36903ca4aad64f2cbd25
|
Provenance
The following attestation bundles were made for sagemath_cryptographic_functions_library-0.2.0.tar.gz:
Publisher:
python-publish.yml on hoeeg/SageMath_library_for_cryptographic_functions
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sagemath_cryptographic_functions_library-0.2.0.tar.gz -
Subject digest:
f74e43f89e354255f860fdf22ecbc48b117225d3678cbbfa2b6a6700b79277aa - Sigstore transparency entry: 1680775505
- Sigstore integration time:
-
Permalink:
hoeeg/SageMath_library_for_cryptographic_functions@5ccde97743db5666e0452cb034caf36b7c7fcc34 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/hoeeg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5ccde97743db5666e0452cb034caf36b7c7fcc34 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sagemath_cryptographic_functions_library-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sagemath_cryptographic_functions_library-0.2.0-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4260569bc4ea98f2a964fd8ed19e7a7f55c806a538f30a5009431d0f279c57
|
|
| MD5 |
2fcd05fd57a7945bbbd2a9376e155bc6
|
|
| BLAKE2b-256 |
b8a60c370b884c63f69ea1d8e063ceec43ee5adfbcd4102a29679dc6bed178bb
|
Provenance
The following attestation bundles were made for sagemath_cryptographic_functions_library-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on hoeeg/SageMath_library_for_cryptographic_functions
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sagemath_cryptographic_functions_library-0.2.0-py3-none-any.whl -
Subject digest:
7c4260569bc4ea98f2a964fd8ed19e7a7f55c806a538f30a5009431d0f279c57 - Sigstore transparency entry: 1680775583
- Sigstore integration time:
-
Permalink:
hoeeg/SageMath_library_for_cryptographic_functions@5ccde97743db5666e0452cb034caf36b7c7fcc34 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/hoeeg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5ccde97743db5666e0452cb034caf36b7c7fcc34 -
Trigger Event:
release
-
Statement type: