docs.rs failed to build cttps-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
cttps-0.1.1
CTTPS (Crypto Transfer Protocol Secure)
CTTPS is a high-performance secure transport protocol designed to establish an encrypted tunnel over a standard TCP connection using an ephemeral X25519 handshake and subsequent symmetric AES-256-GCM encryption.
Features
- Perfect Forward Secrecy (PFS): Uses ephemeral X25519 keys for every session.
- Authenticated Encryption: AES-256-GCM ensures both confidentiality and integrity.
- High Performance: Built on top of
ringandtokio. - Simple Packet Structure: Nonce (12 bytes) + Payload + Tag (16 bytes).
Usage
Server
use CttpsStream;
use TcpListener;
async
Client
use CttpsStream;
use TcpStream;
async
Security Specification
- Handshake: Ephemeral X25519 (RFC 7748).
- Key Derivation: HKDF-SHA256 with Transcript Hashing to prevent MITM/tampering.
- Encryption: AES-256-GCM.
- Nonce: 12 bytes, unique per packet.
- Auth Tag: 16 bytes.
- Forward Secrecy: Perfect Forward Secrecy (PFS) ensured via ephemeral keys.
License
MIT OR Apache-2.0