lvh / caesium

Modern cryptography (libsodium/NaCl) for Clojure
Eclipse Public License 1.0
181 stars 28 forks source link

Inscrutable errors when libsodium is not installed #55

Closed arohner closed 5 years ago

arohner commented 5 years ago

I attempted to use caesium when libsodium was not yet installed. I ran (require 'caesium.crypto.pwhash) and got an error "code size limit exceeded". An error like "libsodium is not installed" would have saved me a whole lot of searching and debugging.

TomLisankie commented 5 years ago

I agree, this would have been very helpful especially since I was sitting trying to figure out what the code size could possibly have to do with now being able to require this library. Then I remembered Caesium is dependent on libsodium being installed (which I didn't have installed) and saw your issue. Installed libsodium and now everything works fine.

dspearson commented 5 years ago

I believe this issue can now be closed.

lvh commented 5 years ago

Indeed it can. Thanks @dspearson !