summaryrefslogtreecommitdiff
path: root/auto_tests/crypto_test.c
AgeCommit message (Collapse)Author
2018-02-24Fix a bunch of compiler warnings and remove suppressions.iphydf
2018-02-18Disable lan discovery in most tests.iphydf
2018-02-06Improve stability of crypto_memcmp test.iphydf
Also reduce number of people in conference to 5, because on Circle CI the test times out trying to connect more than 6 or 7 people. The persistent conferences PR will improve this so we can set it much higher then.
2018-01-30Use nullptr as NULL pointer constant instead of NULL or 0.iphydf
This changes only code, no string literals or comments.
2018-01-19Use larger arrays in crypto timing tests.iphydf
Increasing from 256K to 1M and increasing the number of iterations from 1000 to 2000. This makes the test more accurate and less flaky.
2017-06-05Build tests on appveyor, the MSVC build.iphydf
Tests are not actually ran on appveyor for now, since they all fault for some reason. For now, we just build them. Also, some tests are disabled on msvc entirely, because they don't even compile. We'll need to look into those, later. They are disabled using `MSVC_DONT_BUILD`.
2017-02-26Add part of platform-independent network API implementationDiadlo
socket -> net_socket htons -> net_htons htonl -> net_htonl connect -> net_connect sendto -> net_sendto_ip4 getaddrinfo -> net_getipport sa_family_t -> Family
2017-01-08Set up autotools build to build against vanilla NaCl.iphydf
Fixes #363.
2017-01-07Fix issues in crypto_test.cendoffile78
2017-01-07Replace make_quick_sort with qsortendoffile78
2017-01-04Add tests to secure memcmp and memzero functions.Diadlo
2016-12-22Wrap all sodium/nacl functions in crypto_core.c.iphydf
2016-09-30Remove return after no-return situation (and other cleanups).iphydf
Cleanups: - Fix header guards to not use reserved names. - Avoid name shadowing. - Removed an unused variable found by avoiding name shadowing.
2016-09-09Minor cleanups: header reordering, adding {}.iphydf
I hadn't done this for the "fun" code, yet. Also, we should include system headers after our own headers. "In general, a module should be implemented by one or more .cpp files. Each of these .cpp files should include the header that defines their interface first. This ensures that all of the dependences of the module header have been properly added to the module header itself, and are not implicit. System headers should be included after user headers for a translation unit." -- http://llvm.org/docs/CodingStandards.html#a-public-header-file-is-a-module
2016-09-06Improve static and const correctness.iphydf
- Any non-externally-visible declarations should be `static`. - Casting away the `const` qualifier from pointers-to-const is dangerous. All but one instance of this are now correct. The one instance where we can't keep `const` is one where toxav code actually writes to a chunk of memory marked as `const`. This code also assumes 4 byte alignment of data packets. I don't know whether that is a valid assumption, but it's likely unportable, and *not* obviously correct. - Replaced empty parameter lists with `(void)` to avoid passing parameters to it. Empty parameter lists are old style declarations for unknown number and type of arguments. - Commented out (as `#if DHT_HARDENING` block) the hardening code that was never executed. - Minor style fix: don't use `default` in enum-switches unless the number of enumerators in the default case is very large. In this case, it was 2, so we want to list them both explicitly to be warned about missing one if we add one in the future. - Removed the only two function declarations from nTox.h and put them into nTox.c. They are not used outside and nTox is not a library.
2016-09-02Do not use `else` after `return`.iphydf
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
2016-09-01Sort #includes in all source files.iphydf
2016-08-31Add braces to all if statements.iphydf
2016-01-30Realised there was no test to test these functions.irungentoo
2014-08-09Remove DEFTESTCASE and DEFTESTCASE_SLOW redefinitionspyruvate
2014-05-02Fixed other test.irungentoo
2014-05-01Protocol implementation is starting to look ok.irungentoo
Still need to decide exactly how data packets will work though.
2014-04-21Fixed test.irungentoo
2014-04-21Crypto related cleanups.irungentoo
Moved Bunch of functions from net_crypto to crypto_core. decrypt_data_fast and decrypt_data_symmetric were the same thing therefore, removed decrypt_data_fast. Replaced all the crypto_secretbox_* defines with the equivalent crypto_box_* one. New define: crypto_box_KEYBYTES that is equal to crypto_box_BEFORENMBYTES.
2013-12-21Added function to save an encrypted version of the messenger.irungentoo
Also added some tests.
2013-10-24Removed define that could become confusing.irungentoo
2013-09-16Make test "endtoend" pass on 'slow' systemsCoren[m]
auto_test/crypto_test.c: - test "endtoend": increased timeout from default ~5s to 15s, making it pass on slower systems - signed/unsiged warning fixed by cast
2013-09-10Fixed building with NaCl.irungentoo
2013-08-24consistency checkJamoBox
fixed grammar to maintain consistency of output
2013-08-24Rename core directory because of autoconf name clashjin-eld
While doing the checks configure might generate "core" files and will then try to remove them. Having a "core" directory generates an error while runing the configure script. There's no workaround but to rename the core directory.
2013-08-20Fixed issue 470, crypto_test still forcing libsodium when NaCL is chosenSean Qureshi
2013-08-16Passed everything through astyle.irungentoo
2013-08-14Reduced redundant code, added new crypto testslvr
2013-08-10Implemented encrypt_data_fast, decrypt_data_fast and crypto testsslvr