Comments (6)
Well, it's failing in crypto_box_curve25519xsalsa20poly1305_ref_afternm
which is getting called here:
https://github.com/cryptosphere/rbnacl/blob/master/lib/rbnacl/boxer.rb#L62
It appears to be blowing up inside the XSalsa20 code, so I'm guessing that's not receiving an appropriately sized buffer.
from rbnacl.
That would be my guess too, but the specs are green here, and the prototype is correct according to the C code. I think it might require poking around in the c code to understand
from rbnacl.
I'm wondering how well NaCl's combined input/output buffers are playing with FFI... I tried loading it up in valgrind but FFI obscures what's actually happening.
This is one of my first experiences debugging an FFI extension and I'm not really sure how to proceed.
from rbnacl.
I can reproduce it here. It fails on my 32-bit netbook, but not the main laptop which is 64-bit. Still no idea how to solve, but at least the debug cycle no longer involves Travis.
from rbnacl.
I'm curious if it's similar to this. NaCl's API is so weird ;)
On Mon, Jan 21, 2013 at 12:33 AM, Jon [email protected] wrote:
I can reproduce it here. It fails on my 32-bit netbook, but not the main
laptop which is 64-bit. Still no idea how to solve, but at least the debug
cycle no longer involves Travis.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-12488531.
Tony Arcieri
from rbnacl.
No, I don't think so. I'm only changing an int
to a long long
. If it were a similar thing to that fix I think FFI would still barf on it. I guess my laptop had decided a int
was 64-bits, so it didn't matter.
from rbnacl.
Related Issues (20)
- argon2i breaks with libsodium 1.0.15 HOT 2
- will Auth be implemented HOT 3
- key was 257 bytes (Expected 32) [RbNaCl::LengthError] HOT 1
- FFI::NotFoundError: Function 'crypto_pwhash_memlimit_min' not found in [libsodium.so] HOT 12
- rbnacl on Heroku HOT 1
- Windows instructions link broken
- stream interface of libsodium HOT 2
- Correct way to derive a key from a passphrase HOT 4
- issues with installing chef client from windows machine(win 10) HOT 3
- Update Windows instructions to copy to sodium.dll instead of libsodium.dll HOT 5
- Better example on how to do public/private key pair signing HOT 12
- Converting a verification key into public key HOT 2
- Deprecation warning when using FFI 1.12.1 HOT 5
- PasswordHash Docs Missing functions
- Unable to Decode Sealed Box In JS HOT 1
- Could not open library 'sodium': dlopen(sodium, 5): image not found. (LoadError) on Apple Silicon M1 HOT 7
- SigningKey#sign(message) makes undocumented assumptions about message encoding HOT 1
- Need help with sharing secret across different project HOT 1
- OPSLIMIT_MIN is incorrect for Argon2i when Argon2id is available
- FAQ should mention sealed boxes HOT 2
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 rbnacl.