Closed pcotret closed 5 months ago
I have a similar behavior following https://quarkslab.github.io/crypto-condor/latest/development/CONTRIBUTING.html
$ make init
[+] Installing with poetry
poetry install --with=dev,docs
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: crypto-condor (2024.06.04)
[+] Compiling primitives
cd crypto_condor/primitives && make all -j4
make[1]: Entering directory '/home/test/Documents/crypto-condor/crypto_condor/primitives'
python AES.py
python Dilithium.py
python Kyber.py
Kyber directory not found: crypto-condor uses the reference implementation of Kyber, which has to be compiled and installed locally
Installation will be done at /home/test/.local/share/crypto-condor/Kyber
python TestU01.py
TestU01 directory not found, copying it to /home/test/.local/share/crypto-condor/testu01
Could not compile TestU01
Hi @pcotret,
Indeed, it should work directly when installing from PyPI, make build
/make init
are used when installing from source. That said, the "no such file _dilithium/README.md
" is a bug that affects users of the package, I'll push an update.
For the second error, that is a problem with the compilation of TestU01. On another machine I noticed the installation timed out because of a missing texlive package. I'm checking how to add debugging for that step.
Ok, so I've pushed a release that solves the bug for installing Kyber and Dilithium. As for TestU01, I've removed its dependency on TeX Live, meaning it is less likely for the compilation to fail. It also can display the compilation output when the verbosity is increased. For example:
head -c 1M </dev/urandom >random.bin
crypto-condor-cli -vv testu01 random.bin
So I'm closing this issue, feel free to open a new one if TestU01 fails to install (or any other problem).
However, I assume it's OK as long as we've installed
crypto-condor
from PyPI.