MsQuic is Microsoft's production-grade, cross-platform implementation of the IETF QUIC transport protocol. Written primarily in C with Rust and C# bindings, it provides a high-performance, low-latency UDP-based transport with built-in TLS 1.3 encryption, multiplexed streams, and advanced congestion control (CUBIC, BBR). The library is designed for both user-mode and kernel-mode operation on Windows, Linux, and macOS, with extensive support for hardware offload (XDP, DPDK) and performance tracing via ETW/LTTng. Architecturally, MsQuic is a library with a minimal public API surface (MsQuicOpenVersion, MsQuicClose) and a rich internal state machine. Core modules include connection management, stream send/receive, packet building/parsing, loss detection, ACK tracking, and path validation. The platform abstraction layer (CxPlat*) provides OS-independent interfaces for sockets, TLS, storage, threading, and memory management. A worker thread pool with event queues handles asynchronous I/O, while partitioned global state enables lock-free concurrency. Key entry points are the public API functions in src/core/api.c, the platform-specific datapath implementations (epoll, io_uring, kqueue, raw sockets, XDP), and the TLS backends (OpenSSL, Schannel, quictls). The library is consumed by tools like secnetperf (performance testing), interop server, load balancer, and attack tool. Extensive unit tests, fuzz testing, and a debugger extension ensure reliability. External dependencies include OpenSSL/quictls for TLS, XDP for Windows kernel offload, and optional DPDK. The build system uses CMake, Cargo, and PowerShell scripts, with Docker support for cross-compilation. The codebase is actively maintained with frequent commits, CI/CD pipelines, and a comprehensive test suite.
This repository is a PHP 5.x polyfill library that provides implementations of the `random_bytes()` and `random_int()` cryptographic functions introduced in PHP 7. The library implements a fallback chain of secure random sources: libsodium extension, /dev/urandom (Unix), mcrypt_create_iv(), and CAPICOM (Windows). It throws exceptions when no secure random source is available rather than falling back to insecure alternatives. The library features modular implementation with separate files for each random source, along with utility functions for mbstring.func_overload-safe string operations and safe integer casting. It includes comprehensive unit tests and maintains compatibility with PHP versions from 5.2 through current versions by disabling itself on PHP 7.0+.
This is a monorepo for the Ember.js-based encrypted chat application 'emberclear', which provides end-to-end encrypted messaging with no server-side message storage. The architecture is modular, consisting of multiple Ember addons (crypto, networking, local-account, UI, test-helpers, tracked-local-storage) and a separate card game app (pinochle) that reuses the same networking and crypto infrastructure. The chat app uses public-key cryptography (tweetnacl, libsodium) via web workers, relays messages through Phoenix WebSocket relays, and persists data locally via IndexedDB and localStorage. It includes features like QR code identity sharing, channel voting with cryptographic chains, and a state-machine-driven setup wizard. The codebase is well-tested with QUnit, acceptance tests, and smoke tests, but shows signs of technical drift with outdated dependencies (Node 14, Ember 3.26.1), many TODO comments, and incomplete features (e.g., voting, QR login transfer). The pinochle game app appears experimental but demonstrates sophisticated state machine usage and animation systems.