Closed CypElf closed 2 years ago
You forgot to link to an MPI provider resp. set it at runtime.
sudo apt install libtomcrypt-dev
https://packages.debian.org/source/sid/libtomcrypt lists dependencies to libgmp-dev
resp. libtommath-dev
, i.e. if you want to use the debian default version you have to make sure that one of the two is installed, then also link your application to it and set the MPI provider at runtime in your source code as shown in the developer manual.
a clone of the repo followed by a
make install
In case you simply clone this repo and run make install
no MPI provider will be enabled. Please check the developer manual for further details on how to enable one (or multiple) MPI provider(s) and also how to set it at runtime.
As soon as #606 is merged you can find the latest version of the developer manual as artifact of the latest CI run.
Prerequisites
Description
The function
rsa_import
aborts the program with the errorLTC_ARGCHK 'ltc_mp.name != NULL' failure on line 34 of file src/pk/rsa/rsa_import.c
. The issue may and probably affects other functions.Steps to Reproduce
rsa_import
withgcc prog.c -o prog -ltomcrypt
Example of basic C program that is affected by the issue :
Version
1.18.2
Additionnal information
The issue was tested on Debian with the library installed via both a
sudo apt install libtomcrypt-dev
and a clone of the repo followed by amake install
.