Expand description
Zero-allocation, no_std compatible TLS
Modules§
Structs§
- Client
- A sans-IO TLS 1.3 client state machine.
- Client
Config - Configuration for a TLS 1.3 client connection.
- Default
Certificate Verifier - Default certificate validator that can handle both X509 chains and raw public keys.
- Hash
- A fixed-capacity byte buffer for cryptographic hash outputs.
- KeyExchange
Public Key - KeyExchange
Secret Key - Parsed
Certificate - A pre-parsed X.509 certificate with all commonly accessed fields extracted in a single DER walk.
- RawPublic
Key - A raw public key pinned as a trust anchor (RFC 7250).
- RootCa
- A trusted root certificate authority with pre-parsed fields.
- System
Clock - A
Clockbacked bystd::time::SystemTime.
Enums§
- Cert
Type - Certificate types for
server_certificate_type/client_certificate_typeextension negotiation (RFC 7250 / RFC 9633). - Cipher
Suite - Cipher suites supported by a
CryptoProvider. - Client
Application Data Event - Events produced when decrypting application data.
- Client
Handshake Event - Events produced by the handshake state machine.
- Error
- KeyExchange
Group - Key exchange group identifiers (RFC 8446 §4.2.7).
- Received
Certificate - A certificate received from the peer during the TLS handshake.
- Signature
Scheme - Signature schemes (RFC 8446 §4.2.3).
Constants§
- AEAD_
MAX_ KEY_ SIZE - AEAD_
TAG_ SIZE - The fixed size of AEAD tags
- ALPN_
PROTOCOL_ MAX_ SIZE - KEY_
EXCHANGE_ MAX_ GROUPS - The maximum number of supported key exchange groups in ClientHello
- KEY_
EXCHANGE_ PUBLIC_ KEY_ MAX_ SIZE - The maximum size, in bytes, of a key exchange public key
- KEY_
EXCHANGE_ SECRET_ KEY_ MAX_ SIZE - 32-byte X25519 seed + 64-byte ML-KEM 768 seed
- KEY_
EXCHANGE_ SHARED_ SECRET_ MAX_ SIZE - MAX_
CERTS - Maximum number of certificates allowed in a chain.
- MAX_
HASH_ SIZE - The maximum size, in bytes, of a hash
- MAX_
RECORD_ SIZE - Maximum size of a fully framed TLS record (5-byte header + payload + padding + tag). 5 + 16384 + 1 + 256 + 16 = 16662.
- PSK_
MAX_ SIZE - SIGNATURE_
MAX_ SIZE - SIGNING_
PUBLIC_ KEY_ MAX_ SIZE - The maximum size, in bytes, of a SPKI-encoded signing public key
Traits§
- Buffer
- Trait for buffer types that can hold TLS record data.
- Certificate
Verifier - Clock
- A wall clock used to check certificate validity periods.
- Crypto
Provider