muquit / libsodium-jna Goto Github PK
View Code? Open in Web Editor NEWlibsodium-jna is a java library that binds to libsodium C crypto APIs with Java Native Access (JNA)
License: Other
libsodium-jna is a java library that binds to libsodium C crypto APIs with Java Native Access (JNA)
License: Other
Hi there
It seems that the message length is not passed when calling sodium().crypto_sign_open.
Whats the reason for this? Passing null will yield in libsodium checking the length itself?
Cheers
I feel blind, but I'm not seeing where/how to use iterations/cost for Argon2, if it's built in.
Am I missing something?
Not sure why these wont work (the 2 verify ones also fail with same error). I do already have many of your libsodium-jna functions working normally. I have also implemented a few new ones for you and have recently pushed them to you for merge.
But these ones just seem to fail. (using eclipse neon 64 and jre 1.8.0_144
I posted the same question on the original c libsodium library repo jedisct1/libsodium#634. But I figured I'd ask here since I'm using this library. I'm on 32-bit win10 running this in IntelliJ. I installed the c library myself since any documentation for windows is non-existant but when I run the TestSodiumLibrary it fails on 13 tests all with the same error relating to incorrect sizes of nonces and salts. Something like "com.muquit.libsodiumjna.exceptions.SodiumLibraryException: salt is 32, it must be 63310704161062944 bytes". So my thinking is I probably didn't setup access to the c library properly, but I don't have any way of being sure. I was hoping maybe someone would have an idea as to why the incorrect byte size is being read from c in the Java project. I.e for cryptoPwhashScrypt it sets long salt_length to sodium().crypto_pwhash_scryptsalsa208sha256_saltbytes(). In c this is 32U, in java its something like 143250559619563552 since the value is never constant per compilation.
Issue when im decrypting a key of 184 bytes. the allowed is 32 bytes. how can we change the constant NativeLong crypto_box_secretkeybytes() into 184
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.