ZeroTierOne/core
2021-04-15 23:20:02 -04:00
..
Address.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
AES.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
AES.hpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
AES_aesni.cpp Small fix for VAES. 2021-04-02 15:32:12 -04:00
AES_armcrypto.cpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
Buf.cpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Buf.hpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
C25519.cpp Warning removal, Go work... 2020-08-10 12:35:26 -07:00
C25519.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
CallContext.hpp Error reformatting, and use the suspend-aware monotonic clock on Linux. 2021-04-13 18:57:44 -04:00
CapabilityCredential.cpp Some cleanup. 2021-04-12 19:17:19 -04:00
CapabilityCredential.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
CAPI.cpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Certificate.cpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Certificate.hpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
CMakeLists.txt A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Constants.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Containers.hpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Context.hpp Forgot some consts. 2021-04-07 19:04:24 -04:00
Credential.cpp More refactoring: rename RuntimeEnvironment to Context to be more descriptive and make it a reference instead of a raw pointer. 2021-04-07 18:54:52 -04:00
Credential.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Defaults.cpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Defaults.hpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Defragmenter.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Dictionary.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Dictionary.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
ECC384.cpp Various cleanup... 2021-01-12 15:23:35 -05:00
ECC384.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Endpoint.cpp Create and verify locators via CLI. 2021-03-11 21:37:04 -05:00
Endpoint.hpp Swap out warp for simple hyper web server in Rust, and we will use web sockets for webby-style communication since WebRTC is a mess. 2021-02-25 10:49:35 -05:00
Expect.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
FCV.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Fingerprint.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Identity.cpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Identity.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
InetAddress.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
InetAddress.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Locator.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Locator.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
LZ4.cpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
LZ4.hpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
MAC.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Member.cpp More refactoring: rename RuntimeEnvironment to Context to be more descriptive and make it a reference instead of a raw pointer. 2021-04-07 18:54:52 -04:00
Member.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
MembershipCredential.cpp Some cleanup. 2021-04-12 19:17:19 -04:00
MembershipCredential.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Meter.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
MIMC52.cpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
MIMC52.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
MulticastGroup.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Mutex.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Network.cpp Forgot some consts. 2021-04-07 19:04:24 -04:00
Network.hpp Forgot some consts. 2021-04-07 19:04:24 -04:00
NetworkConfig.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
NetworkConfig.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
NetworkController.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Node.cpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Node.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
OS.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
OwnershipCredential.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
OwnershipCredential.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Path.cpp More refactoring: rename RuntimeEnvironment to Context to be more descriptive and make it a reference instead of a raw pointer. 2021-04-07 18:54:52 -04:00
Path.hpp Some cleanup. 2021-04-12 19:17:19 -04:00
Peer.cpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Peer.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Poly1305.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Poly1305.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Protocol.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
README.md More reorg, work in progress. 2020-06-05 13:04:37 -07:00
RevocationCredential.cpp Some cleanup. 2021-04-12 19:17:19 -04:00
RevocationCredential.hpp Some cleanup. 2021-04-12 19:17:19 -04:00
Salsa20.cpp Some optimization work on crypto code. 2020-07-15 14:33:02 -07:00
Salsa20.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
ScopedPtr.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
SelfAwareness.cpp Forgot some consts. 2021-04-07 19:04:24 -04:00
SelfAwareness.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
SHA512.cpp Some cleanup and optimization. 2020-07-02 10:33:34 -07:00
SHA512.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
SharedPtr.hpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Spinlock.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Store.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
SymmetricKey.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
TagCredential.cpp Some cleanup. 2021-04-12 19:17:19 -04:00
TagCredential.hpp Some cleanup. 2021-04-12 19:17:19 -04:00
Tests.cpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Tests.h Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TinyMap.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Topology.cpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Topology.hpp More refactoring: rename RuntimeEnvironment to Context to be more descriptive and make it a reference instead of a raw pointer. 2021-04-07 18:54:52 -04:00
Trace.cpp More refactoring: rename RuntimeEnvironment to Context to be more descriptive and make it a reference instead of a raw pointer. 2021-04-07 18:54:52 -04:00
Trace.hpp More refactoring: rename RuntimeEnvironment to Context to be more descriptive and make it a reference instead of a raw pointer. 2021-04-07 18:54:52 -04:00
TriviallyCopyable.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TrustStore.cpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
TrustStore.hpp Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00
Utils.cpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
Utils.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
version.h.in Copyright notices, dates. 2021-02-22 22:58:16 -05:00
VL1.cpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
VL1.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
VL2.cpp More refactoring: rename RuntimeEnvironment to Context to be more descriptive and make it a reference instead of a raw pointer. 2021-04-07 18:54:52 -04:00
VL2.hpp A bunch of simplification in SymmetricKey and the ephemeral re-keying logic. Not on yet, but the structure is all there. 2021-04-09 23:18:29 -04:00
zerotier.h Refactor certificates to have their own keys instead of being signed by identities, and fix certificate chain validation to be like how X509 certs are validated. 2021-04-15 23:20:02 -04:00

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.