-
Notifications
You must be signed in to change notification settings - Fork 5
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
build & test issues compiling under raspbian #121
Comments
The AMCL issues will be resolved by fixing the AMCL install, as per the issue in @zanebeckwith Should have a better idea about the tests failing. |
Hmm, I can't recreate the failing tests when running on my 64bit Ubuntu laptop. Can you describe your build setup more? Also, what's the platform you're on? It's interesting that the two failing |
Ah, actually, I think I found the issue: https://doc.libsodium.org/secret-key_cryptography/aead/aes-256-gcm Libsodium (which provided the implementation of the encryption primitives for xtt) simply doesn't support AES256GCM on platforms that don't have hardware accelerations for AES. While the ARM chips in the RasPi may or may not have support for The step where the integration_test is failing is the first place where the encryption is actually used, so it's probably the This means I need to add a build flag to disable compilation of the AES suite_specs. Because |
Interesting. I haven't seen these issues on the router card or the ARM gateways that I've compiled for, but I also haven't run the test suites. Does this imply that the AES ciphersuite would fail on those devices? |
That's my assumption. I would love to check that Again, compiling in the AES stuff doesn't fail the build, and no errors will be seen until you actually try to use the AES stuff. So, if you're just using It looks like |
Damn, I would love to have (maybe QEMU?) cross-platform tests of these crypto libraries running in CI, to try to catch crap like this. Someday... |
@drbild do you have a router card that's already set up to be able to run the XTT handshake, to which you also have console access, where you could switch the config option to use an AES suite_spec? |
The suitespec is hardcoded currently (not actually exposed as a config option), so I'd need to recompile |
Ah, I see. Ok, I'll add the build flag to allow disabling AES, when I get a few spare cycles (shouldn't take long, but probably won't be today). I'll also try to boot a router card, change the suite_spec, and confirm that it does fail when attempting AES |
Similar to issue 133 in the ecdaa repository xaptum/ecdaa#133 , I had to change includes from
<amcl/...>
to
<amcl/include/...>
Ctest failed 3 tests:
and
The text was updated successfully, but these errors were encountered: