Adam Ierymenko aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 anos atrás
..
AES.cpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 anos atrás
AES.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 anos atrás
Address.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Buf.cpp 547f39bb49 Fixes for Buf, unit test 6 anos atrás
Buf.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
C25519.cpp 666d44b14a More endless work in progress... 5 anos atrás
C25519.hpp 666d44b14a More endless work in progress... 5 anos atrás
CMakeLists.txt d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Capability.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Capability.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 anos atrás
CertificateOfMembership.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
CertificateOfMembership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 anos atrás
CertificateOfOwnership.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
CertificateOfOwnership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 anos atrás
Constants.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 anos atrás
Containers.hpp d537428421 Build fixes. 5 anos atrás
Credential.cpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 anos atrás
Credential.hpp d3a7468e83 Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 5 anos atrás
Defragmenter.hpp d537428421 Build fixes. 5 anos atrás
Dictionary.cpp b533c300d8 A ton more work... almost there 5 anos atrás
Dictionary.hpp b533c300d8 A ton more work... almost there 5 anos atrás
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 anos atrás
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 anos atrás
Endpoint.cpp 666d44b14a More endless work in progress... 5 anos atrás
Endpoint.hpp 996589894d Build fixes 5 anos atrás
EphemeralKey.hpp 996589894d Build fixes 5 anos atrás
Expect.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 anos atrás
FCV.hpp 996589894d Build fixes 5 anos atrás
Fingerprint.hpp 996589894d Build fixes 5 anos atrás
Identity.cpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 anos atrás
Identity.hpp 996589894d Build fixes 5 anos atrás
InetAddress.cpp d537428421 Build fixes. 5 anos atrás
InetAddress.hpp d537428421 Build fixes. 5 anos atrás
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 anos atrás
LZ4.hpp 274db26339 Fix accidentally removed file. 5 anos atrás
Locator.cpp d537428421 Build fixes. 5 anos atrás
Locator.hpp d537428421 Build fixes. 5 anos atrás
MAC.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 anos atrás
Membership.cpp d537428421 Build fixes. 5 anos atrás
Membership.hpp d537428421 Build fixes. 5 anos atrás
Meter.hpp d537428421 Build fixes. 5 anos atrás
MulticastGroup.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 anos atrás
Mutex.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 anos atrás
Network.cpp d537428421 Build fixes. 5 anos atrás
Network.hpp b533c300d8 A ton more work... almost there 5 anos atrás
NetworkConfig.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
NetworkConfig.hpp b533c300d8 A ton more work... almost there 5 anos atrás
NetworkController.hpp b533c300d8 A ton more work... almost there 5 anos atrás
Node.cpp d537428421 Build fixes. 5 anos atrás
Node.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 anos atrás
OS.hpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 anos atrás
Path.cpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 anos atrás
Path.hpp 78d223d709 A bunch more cleanup, remove a ton of reinterpret_cast cruft in favor of a simple union in InetAddress. 5 anos atrás
Peer.cpp d537428421 Build fixes. 5 anos atrás
Peer.hpp 996589894d Build fixes 5 anos atrás
PeerList.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Poly1305.cpp b533c300d8 A ton more work... almost there 5 anos atrás
Poly1305.hpp d537428421 Build fixes. 5 anos atrás
Protocol.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 anos atrás
README.md c6ce6b46ce build fixes 6 anos atrás
Revocation.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Revocation.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 anos atrás
RuntimeEnvironment.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 anos atrás
SHA512.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
SHA512.hpp b533c300d8 A ton more work... almost there 5 anos atrás
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 6 anos atrás
Salsa20.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
ScopedPtr.hpp 666d44b14a More endless work in progress... 5 anos atrás
SelfAwareness.cpp d537428421 Build fixes. 5 anos atrás
SelfAwareness.hpp b533c300d8 A ton more work... almost there 5 anos atrás
SharedPtr.hpp d537428421 Build fixes. 5 anos atrás
SymmetricKey.hpp 666d44b14a More endless work in progress... 5 anos atrás
Tag.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Tag.hpp b533c300d8 A ton more work... almost there 5 anos atrás
Tests.cpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 anos atrás
Tests.h b533c300d8 A ton more work... almost there 5 anos atrás
Topology.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Topology.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Trace.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
Trace.hpp 666d44b14a More endless work in progress... 5 anos atrás
TriviallyCopyable.hpp 996589894d Build fixes 5 anos atrás
Utils.cpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 anos atrás
Utils.hpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 anos atrás
VL1.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
VL1.hpp 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. 5 anos atrás
VL2.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 anos atrás
VL2.hpp 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. 5 anos atrás

README.md

ZeroTier Network Hypervisor Core

This directory contains the real ZeroTier: a completely OS-independent global virtual Ethernet switch engine. This is where the magic happens.

Give it wire packets and it gives you Ethernet packets, and vice versa. The core contains absolutely no actual I/O, port configuration, or other OS-specific code (except Utils::getSecureRandom()). It provides a simple C API via /include/ZeroTierOne.h. It's designed to be small and maximally portable for future use on small embedded and special purpose systems.

Code in here follows these guidelines:

  • Keep it minimal, especially in terms of code footprint and memory use.
  • There should be no OS-dependent code here unless absolutely necessary (e.g. getSecureRandom).
  • If it's not part of the core virtual Ethernet switch it does not belong here.
  • Minimize the use of complex C++ features since at some point we might end up "minus-minus'ing" this code if doing so proves necessary to port to tiny embedded systems.