First version of Threefish512-CTR with BLAKE3-MAC & a custom shamirs secret sharing port alongside C bridges with test vectors & Compilation instructions

This commit is contained in:
2026-01-13 21:23:34 +01:00
parent 81dbdf451f
commit 99c6a7b6a2
142 changed files with 28312 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
## To compile the python encryption layer
### linux:
pre:
`sudo apt update && sudo apt install python3 python3-pip -y`
please create a venv, install numpy & nuitka inside using the pip binary it provide; `python3 -m venv env && ./env/bin/pip install nuitka numpy`
compile cmd: `./env/bin/python3 -m nuitka shamirs_secret_sharing.py --module --output-dir=dll_dist --mingw64 --include-package=numpy`
### windows:
can globally install nuitka & numpy using `python -m pip install numpy nuitka`
compile cmd: `python -m nuitka shamirs_secret_sharing.py --module --output-dir=dll_dist --mingw64 --include-package=numpy`
## To compile the bridge
### windows:
`$ gcc -shared py_bridge.c -o shamir_bridge.dll -Iinclude -Llibs -lpython312`
### linux:
`$ gcc -shared -fPIC py_bridge-lin.c -o shamir_bridge.so $(python3.11-config --includes --ldflags)`