rweather / noise-c

Noise-C, a plain C implementation of the Noise protocol
MIT License
304 stars 86 forks source link

Enable building with libsodium only #49

Open dereulenspiegel opened 3 years ago

dereulenspiegel commented 3 years ago

We tried to use noise-c only with libsodium support but without openssl support. For us this didn't work, most likely because if openssl is not used libsodium might still need report at runtime that AES GCM support is not available (probably due to build flags of libsodium) so noise-c falls back to the reference implementation (and rightly so). But in the build configuration this was nit reflected as the static library archive was missing the object files for the reference AES GCM implementation. This PR includes these files and seems to work well.

gram-signal commented 1 year ago

I think you may need more than this, since USE_SODIUM isn't set (#16). #54 IIUC fixes everything necessary to run with libsodium.