Adam Ierymenko a7350bc312 Bust out ARM crypto extensions AES into a separate file too. před 5 roky
..
AES.cpp a7350bc312 Bust out ARM crypto extensions AES into a separate file too. před 5 roky
AES.hpp a7350bc312 Bust out ARM crypto extensions AES into a separate file too. před 5 roky
AES_aesni.cpp 0e396526e4 Some small Go stuff, and break out AES-NI into its own .cpp file for easier management. před 5 roky
AES_armcrypto.cpp a7350bc312 Bust out ARM crypto extensions AES into a separate file too. před 5 roky
Address.hpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Blob.hpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Buf.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Buf.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
C25519.cpp f97e9e1f5d Warning removal, Go work... před 5 roky
C25519.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
CAPI.cpp 8e5f8140a2 One more thing to move to CAPI.cpp. před 5 roky
CMakeLists.txt a7350bc312 Bust out ARM crypto extensions AES into a separate file too. před 5 roky
CapabilityCredential.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
CapabilityCredential.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Certificate.cpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Certificate.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Constants.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Containers.hpp 78670aea58 AES software optimizations to make rpi4 faster. před 5 roky
Credential.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Credential.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Defaults.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Defaults.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Defragmenter.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Dictionary.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Dictionary.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
ECC384.cpp 69f1c8701b Define uint since that is not a standard symbol. před 5 roky
ECC384.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Endpoint.cpp 8e5f8140a2 One more thing to move to CAPI.cpp. před 5 roky
Endpoint.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
EphemeralKey.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Expect.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
FCV.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Fingerprint.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Identity.cpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Identity.hpp 4273d89373 Linux/GCC fixes. před 5 roky
InetAddress.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
InetAddress.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
LZ4.cpp 3c11c13af4 More reorg, work in progress. před 5 roky
LZ4.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Locator.cpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Locator.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
MAC.hpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Member.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Member.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
MembershipCredential.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
MembershipCredential.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Meter.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
MulticastGroup.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Mutex.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Network.cpp 4273d89373 Linux/GCC fixes. před 5 roky
Network.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
NetworkConfig.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
NetworkConfig.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
NetworkController.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Node.cpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Node.hpp 72114e4cf8 Remove HTTP stuff from core API. This will be handled entirely in the service. před 5 roky
OS.hpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
OwnershipCredential.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
OwnershipCredential.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Path.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Path.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Peer.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Peer.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Poly1305.cpp 3c11c13af4 More reorg, work in progress. před 5 roky
Poly1305.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Protocol.hpp 00714f5f2e cleanup před 5 roky
README.md 3c11c13af4 More reorg, work in progress. před 5 roky
RevocationCredential.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
RevocationCredential.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
RuntimeEnvironment.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
SHA512.cpp bd0299f392 Some cleanup and optimization. před 5 roky
SHA512.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Salsa20.cpp 883cbd182d Some optimization work on crypto code. před 5 roky
Salsa20.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
ScopedPtr.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
SelfAwareness.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
SelfAwareness.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
SharedPtr.hpp 9ef780e05c Build fix-- these are not needed. před 5 roky
SymmetricKey.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
TagCredential.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
TagCredential.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Tests.cpp 37360d5e2e More test timing fixes. před 5 roky
Tests.h 7c929099b3 Change date bump for v2.0 před 5 roky
Topology.cpp 2abf2c5695 More certificate stuff... před 5 roky
Topology.hpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Trace.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
Trace.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
TriviallyCopyable.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
Utils.cpp 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. před 5 roky
Utils.hpp 4273d89373 Linux/GCC fixes. před 5 roky
VL1.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
VL1.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
VL2.cpp 7c929099b3 Change date bump for v2.0 před 5 roky
VL2.hpp 7c929099b3 Change date bump for v2.0 před 5 roky
version.h.in 7c929099b3 Change date bump for v2.0 před 5 roky
zerotier.h 72114e4cf8 Remove HTTP stuff from core API. This will be handled entirely in the service. před 5 roky

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.