summaryrefslogtreecommitdiff
path: root/selftest.cpp
AgeCommit message (Collapse)Author
2015-02-17Re-incorporation: ZeroTier Networks -> ZeroTier, Inc. [Delaware]Adam Ierymenko
2015-01-05Cleanup, add tristate to config code in Network, and happy new year!Adam Ierymenko
2014-10-21cleanupAdam Ierymenko
2014-09-16Get rid of __align stuff in Salsa20 -- not portable, does not seem to help ↵Adam Ierymenko
much on newer chips.
2014-08-16Refactor HttpClient a bit.Adam Ierymenko
2014-07-15Scale back Salsa20 benchmark a bit to not take too long on slow boxes.Adam Ierymenko
2014-07-15SSE optimized Salsa20 -- anywhere from 20% to 50% faster than plain C versionAdam Ierymenko
2014-04-18Cleanup, dead code removal, some pretty insignificant security stuff that's ↵Adam Ierymenko
based on recommendations.
2014-03-19IPC changes and SocketManager changes all build!Adam Ierymenko
2014-02-16Boring stuff: update dates in copyrights across all files.Adam Ierymenko
2014-01-21Several things:Adam Ierymenko
(1) Add a bunch of tedious type casts to eliminate unnecessary compiler warnings on Windows X64 builds. (2) Some EthernetTap work to integrate Windows custom IOCTL for multicast group lookup (not done quite yet). (3) Dump some more info in selftest to make sure our Windows path lookup functions are returning sane results.
2013-12-06HTTP self-test.Adam Ierymenko
2013-12-06HTTP client works!Adam Ierymenko
2013-10-28Make Makefile for Mac use clang options instead of old GCC options, and fix ↵Adam Ierymenko
a nasty but obvious bug I introduced into Utils::getSecureRandom.
2013-10-21Put back rest of selftest.Adam Ierymenko
2013-10-21Self-test for certificate of membership.Adam Ierymenko
2013-10-20Blech... moving on!Adam Ierymenko
2013-10-20And then it turns out to be too slow on a slower 32-bit machine... we do ↵Adam Ierymenko
want to do tablets eventually.
2013-10-20Yet another revision of this algo... yeesh... and update to supernode IDs. I ↵Adam Ierymenko
think I am gonna go with this one. Seems memory-hard enough to me. I am probably procrastinating by obsessing over it.
2013-10-18Make Salsa20 variable-round, allowing for Salsa20/12 to be used for Packet ↵Adam Ierymenko
encrypt and decrypt. Profiling analysis found that Salsa20 encrypt was accounting for a nontrivial percentage of CPU time, so it makes sense to cut this load fundamentally. There are no published attacks against Salsa20/12, and DJB believes 20 rounds to be overkill. This should be more than enough for our needs. Obviously incorporating ASM Salsa20 is among the next steps for performance.
2013-10-07Add a second arg to idtool generate to make generating both secret and ↵Adam Ierymenko
public easier, add new supernode identities after generating them, fix known good and bad IDs in selftest.
2013-10-05Make new identity hashcash algo memory hard, and tweak generation time a ↵Adam Ierymenko
bit. Current hashcash cost should be overkill for what we need but still tolerable to users.
2013-10-05Rest of work on new hashcash based identity scheme.Adam Ierymenko
2013-10-05Hashcash-based identity, work in progress... committing to test speed on ↵Adam Ierymenko
other boxes.
2013-09-27Self-test fixes for new packet armor/dearmor functions that combine old ↵Adam Ierymenko
encrypt and MAC functions.
2013-09-19Add validation of known-good identity to selftest to check endian and ↵Adam Ierymenko
similar issues across platforms.
2013-09-16New crypto integrated -- going to be testing new identity address generation ↵Adam Ierymenko
algo a bit more before finalizing.
2013-09-15Test vectors for all new crypto.Adam Ierymenko
2013-09-14Add test vectors for ensuring identical C25519 operation across systems.Adam Ierymenko
2013-09-13More new crypto: Ed25519 signatures.Adam Ierymenko
2013-09-13Add new crypto: SHA512 and C25519 -- not integrated yet.Adam Ierymenko
2013-08-30Improve code security posture by replacing sprintf with a safer function.Adam Ierymenko
2013-08-25Cut out tap test code from selftest.Adam Ierymenko
2013-08-25Tap works! At least in isolation. Time to create the Windows executable and ↵Adam Ierymenko
the Windows service to run it and handle auto-update.
2013-08-23Tap driver basically builds in VS2012... fork of tap-windows from OpenVPN ↵Adam Ierymenko
(compatible license).
2013-08-23Decided to abandon the winpcap direction for Windows tap... re-evaluating ↵Adam Ierymenko
using OpenVPN tap driver in some form for now.
2013-08-22Commit of a draft of the pcap-based strategy for a Windows tap. This may, in ↵Adam Ierymenko
the end, not work, since winpcap may not support immediate capture and also because some software flags winpcap as malware. Like I said, trying to do anything interesting with Windows is PAIN.
2013-08-22Tap now creates Microsoft Loopback Adapter instances and tags them with a ↵Adam Ierymenko
special ID... work in progress.
2013-08-14Self test almost builds, now need skeleton EthernetTap implementation for ↵Adam Ierymenko
Windows.
2013-08-13Version 0.4.3 (the real one): fix Gentoo ip config failures and crashesAdam Ierymenko
This version fixes problems with locating the 'ip' command on Gentoo and possibly other Linux systems, and a problem that could cause a crash if EthernetTap was unable to locate one of the commands it invokes to configure IP information on tap devices. The code also now builds on Windows. It doesn't run yet, but it's a step. Windows port is in full swing. Finally, the multicast rate limit defaults were raised a little. More testing is needed here, and real world measurments.
2013-08-12Clean up a bunch of valgrind errors, nix a potentially unsafe op in Buffer ↵Adam Ierymenko
assignment operator.
2013-08-10Replace libcrypto RAND_ with our own to avoid valgrind errors.Adam Ierymenko
2013-08-10Stop using RAND_ in libcrypto for Utils::getSecureRandom() due to annoying ↵Adam Ierymenko
valgrind spew from libcrypto use of uninitialized RAM as a random source. Might look into replacing RAND_ in libcrypto with our own simple /dev/urandom / Windows CAPI plugin.
2013-07-27Add simple key=value dictionary, sorta like java.util.Properties.Adam Ierymenko
2013-07-27Dump huffman, doesnt add much and complicates porting to other languages. ↵Adam Ierymenko
Also fix compile error in idtool.
2013-07-18Self test for command bus encode/decode.Adam Ierymenko
2013-07-09Several things:Adam Ierymenko
(1) Probable fix for issue #7 and major cleanup of EthernetTap code with consolidation for all unix-like systems and specialization for different flavors only when needed. (2) Refactor of Buffer<> to make its members private, and Packet to use Buffer's methods exclusively to access them. This improves clarity and means we're no longer lying about Buffer's role in the code's security posture. (3) Add -fstack-protect to Makefile to bounds check stack variables.
2013-07-04New git repository for release - version 0.2.0 taggedAdam Ierymenko