StructsΒ§
- CliCert
Verifier π - Srvr
Cert πVerifier
ConstantsΒ§
- BAD_
ENCODING_ πERR - BAD_
SIGNATURE_ πERR - PEER_
ID_ πEXT_ OID - OID for the karyon peer-id custom extension.
StaticsΒ§
- CIPHER_
SUITES π - KX_
GROUPS π - PROTOCOL_
VERSIONS π - QUIC_
CIPHER_ πSUITES - QUIC also needs AES-128-GCM: quinn uses it to protect the initial packets. ChaCha20 stays first so it is still preferred for the session.
- SIGNATURE_
SCHEMES π
FunctionsΒ§
- client_
config π - generate_
cert π - Generates a certificate and returns both the certificate and the private key.
- parse_
cert π - Parses the given x509 certificate.
- peer_
id_ πfrom_ certs - Derive the peer id from a peerβs certificate chain post-handshake.
Reuses
verify_certso the validation rules stay in one place. ReturnsNoneif the chain is empty or the cert lacks our extension. - quic_
client_ config - Returns a TLS client configuration for QUIC.
- quic_
server_ config - Returns a TLS server configuration for QUIC.
- server_
config π - tls_
client_ config - Returns a TLS client configuration.
- tls_
server_ config - Returns a TLS server configuration.
- verify_
cert π - Verifies the given certification.
- verify_
cert_ πsignature - Verifies the signature of the given certificate.