Comments (4)
Hi @davidperrenoud,
Just checked and I believe that the cryptoSignDetached
is no longer using long
as the 4th parameter. Also the 2nd parameter requires an int array but it is not required. The reason it's not required is that the libsodium docs states that the 2nd parameter is a pointer to where to store the message length. However, Java does not work with pointers so setting it to null
is preferred.
Therefore, your function call would look more like the following: sodium.cryptoSignDetached(sig, null, m, m.length, sk)
.
from lazysodium-java.
Related to this, what would be the changes required to make LazySodium work with Docker image openjdk:13-alpine
which does not include glibc? Currently I'm using openjdk:11-slim
.
Alpine Linux does not have glibc, but there is a packaged version of libsodium.
from lazysodium-java.
Related to this, what would be the changes required to make LazySodium work with Docker image
openjdk:13-alpine
which does not include glibc? Currently I'm usingopenjdk:11-slim
.Alpine Linux does not have glibc, but there is a packaged version of libsodium.
Okay so judging by the package, it installs libsodium to /usr/lib/libsodium.so.23
or /usr/lib/libsodium.so.23.1.0
which is great 👍
You could try providing an absolute path to that libsodium.so
file when creating a SodiumJava
instance.
String path = "/usr/lib/libsodium.so.23" // or perhaps /usr/lib/libsodium.so.23.1.0
SodiumJava sodium = new SodiumJava(path);
LazySodiumJava lazySodium = new LazySodiumJava(sodium);
It may or may not work, I have not tested it extensively. If it does not work, then please open a new issue and I'll be happy to take a look into it.
from lazysodium-java.
Hi @davidperrenoud,
Please try version 3.7.1
or 3.8.0
for a fix on this. There has been significant improvements in terms of the concurrency of this library. Not only that, there has been a PR to resolve the issue you are having 🙂
from lazysodium-java.
Related Issues (20)
- Upgrade JNA to latest HOT 1
- Problems with resolving resource-loader dependency through OSGI HOT 2
- Padding methods take wrong data type HOT 7
- Support passing byte arrays to lazy methods instead of strings HOT 2
- Lazy Sodium on an M1 mac is not able to load libsodium properly HOT 13
- Lazysodium 5.1.1 doesn't load libsodium for Rocky Linux 8 HOT 1
- libsodium.so can't be loaded on Raspberry Pi OS due to missing libssp.so.0 library HOT 1
- 5.1.2 is not released to maven HOT 3
- ShortHash 'in' expected in hex format?
- Bundled sodium.dll cannot be loaded when path to JAR contains spaces HOT 1
- Provide module information HOT 1
- classes that support shortened number of parameters
- LazySodiumAndroid.cryptoKdfDeriveFromKey() throws an exception if key length exceeds 32 bytes
- help using sealed box for GitHub secret HOT 1
- LazySodium creates folders "resource-loader*" under /tmp folder HOT 1
- An error occurred with java. lang. NoClassDefFoundError
- sodiumHex2Bin silently accepts garbage input
- cryptoScalarMult takes inputs in the wrong order HOT 1
- Blake min bytes seems to be incorrect
- cryptoSign(String message, Key secretKey) does not use messageEncoder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazysodium-java.