libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
https://www.libtom.net
Other
1.51k stars 449 forks source link

adding libtommath to the Libs #610

Closed Apteryks closed 1 year ago

Apteryks commented 1 year ago

Hello,

We carry a patch in GNU Guix which modifies the pkg-config.pc.in file so that libtommath is also added to Libs (Libs: -L${libdir} -ltomcrypt -ltommath).

Would it make sense to be applied here (upstream) ?

Thanks!

sjaeckel commented 1 year ago

The issue here is that libtommath is no hard dependency but a compilation choice.

One can choose out of the following three MPI providers libtommath, tomsfastmath and gnump (or any combination of the three) when compiling libtomcrypt.

The bad part of the current solution is that always all configured MPI providers have to be linked ... it's only a runtime decision of the user which MPI provider to use in the end ...

Would you be fine with the proposed solution?

Apteryks commented 1 year ago

Hi! Thanks for working on a solution; it seems sensible to me!