-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix net.openhft.chronicle.salt.EasyBoxTest #13
Comments
we updated EasyBox to use sodium 1.0.16 but this test is still failing, It works for @peter-lawrey on his laptop. |
This appears to be an issue with the current version of JNR FFI - specifically, it is corrupting the 6th argument in the crypto_box_(open)_easy calls (the secret key). These are the only functions in the Sodium interface which take so many arguments, hence why only the EasyBox tests failing. A stand-alone C version running on the same libsodium version works fine. Continuing to look into options. This may need a bug report raised to JNR-FFI. |
Confirmed. Amending the Java code to wrap all the addresses into a long[] array, and just forwarding this one argument via JNR FFI through an intermediate C .so which unpacks and calls on to sodium works fine (EasyBox tests pass). Using this as a stopgap for now while a fix from JNR FFI is pending. |
This is now fixed. |
JNR-FFI issue raised: |
Released in Chronicle-Salt-2.17.2, BOM-2.17.119 |
Released in Chronicle-Salt-2.17.2, BOM-2.17.196 |
Released in Chronicle-Salt-2.17.2, BOM-2.17.225 |
Released in Chronicle-Salt-2.17.2, BOM-2.17.241 |
please fix this test, net.openhft.chronicle.salt.EasyBoxTest, for now, it has been ignored because it fails on TeamCity, see http://teamcity.higherfrequencytrading.com/viewLog.html?buildId=309860&buildTypeId=OpenHFT_ChronicleSalt_Snapshot&tab=buildLog&_focus=14105
The text was updated successfully, but these errors were encountered: