-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSA lib cannot find libgmp.so #10
Comments
After I execute
New error shows:
I find no libhogweed.so file in my system. After I download libhogweed.so file from Internet to lib64 folder, a new file missing again...
|
The cmd to install nettle:
|
A little bit about dependencies: Nettle (https://www.lysator.liu.se/~nisse/nettle/) is divided to two libraries: libnettle and libhogweed. Both come with the same sources (or install). libnettle does not have any external dependencies, but libhogweed does depend on GMP (https://gmplib.org/). Both Nettle and GMP are usually generally available in your operating system packages, e.g.: macOS: brew install gmp
brew install nettle Ubuntu: sudo apt install libgmp10
sudo apt install libnettle6
sudo apt install libhogweed4 And you can build it from the sources as well. Please make sure you add the libraries in your system library path (not the And to let you know, I just released a new version Let me know if that helps. |
|
Thank you! After I install gmp-6.1.2 and update glibc to 2.14, the "resty.nettle.rsa" lib load successfully. But when I run the sample code, I got a new error:
|
Another question: How to en/decrypt using my given n/p/q/d/e?
|
@hcaihao yes, no need to call |
local rsa = require "resty.nettle.rsa"
Cause error:
msg : /usr/local/openresty/lualib/resty/nettle/mpz.lua:11: libgmp.so: cannot open shared object file: No such file or directory
Centos 6.5 + nettle 3.3 + lua-resty-nettle 0.98
The text was updated successfully, but these errors were encountered: