A SageMath library for cryptographic functions
Project description
SageMath Library for Cryptographic Functions
This project provides a SageMath library for working with cryptographic functions, with a particular focus on quadratic APN (Almost Perfect Nonlinear) functions.
The library aims to make research workflows involving APN families, representation conversions, and family membership testing easier to reproduce and extend.
Features
- Conversion between principal representations of vectorial Boolean functions, univariate polynomial to / from
- Truth table
- Quadratic Matrix
- Sequence
- Bivariate
- Trivariate
- 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
from sagemath_cryptographic_functions_library import convert, families, membership
Don't have Sage?
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
├── library/
│ ├── convert.py Representation conversions
│ ├── families.py Known APN family constructions
│ ├── helpers.py Finite field utility functions
│ └── membership.py Family identification algorithms
├── README.md This file
├── setup.py Top-level configure script
└── 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.1.1.tar.gz.
File metadata
- Download URL: sagemath_cryptographic_functions_library-0.1.1.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
516346e5162260ed5342e6fe28c666ba8da7d43001892794ca8e8dacb47f6118
|
|
| MD5 |
107a319ec6fabef7fc6134b339c77a53
|
|
| BLAKE2b-256 |
502222d05c86b9b78bbebc553a095a80aa5bcf8bd490d50e4c58e4b4c1ad2743
|
Provenance
The following attestation bundles were made for sagemath_cryptographic_functions_library-0.1.1.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.1.1.tar.gz -
Subject digest:
516346e5162260ed5342e6fe28c666ba8da7d43001892794ca8e8dacb47f6118 - Sigstore transparency entry: 1647583702
- Sigstore integration time:
-
Permalink:
hoeeg/SageMath_library_for_cryptographic_functions@734a4718f3935a31f64266a9e7b24fea7b095cae -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hoeeg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@734a4718f3935a31f64266a9e7b24fea7b095cae -
Trigger Event:
release
-
Statement type:
File details
Details for the file sagemath_cryptographic_functions_library-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sagemath_cryptographic_functions_library-0.1.1-py3-none-any.whl
- Upload date:
- Size: 25.1 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 |
4254a48f09b9d91a3254e27c5212bae4313816026eb69da168d6f8056a1bae91
|
|
| MD5 |
309e0549e85d1b3dee60304796966107
|
|
| BLAKE2b-256 |
190d19b9057b4a78937e204bb14ec6d7c12c0c2754c2fbe3eb7c4d12eb372818
|
Provenance
The following attestation bundles were made for sagemath_cryptographic_functions_library-0.1.1-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.1.1-py3-none-any.whl -
Subject digest:
4254a48f09b9d91a3254e27c5212bae4313816026eb69da168d6f8056a1bae91 - Sigstore transparency entry: 1647583770
- Sigstore integration time:
-
Permalink:
hoeeg/SageMath_library_for_cryptographic_functions@734a4718f3935a31f64266a9e7b24fea7b095cae -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hoeeg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@734a4718f3935a31f64266a9e7b24fea7b095cae -
Trigger Event:
release
-
Statement type: