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:
20
crypto/shamirs_secret_sharing/README.md
Normal file
20
crypto/shamirs_secret_sharing/README.md
Normal 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)`
|
||||
Reference in New Issue
Block a user