Skip to main content

Module key_agreement

Module key_agreement 

Source
Expand description

Ephemeral X25519 ECDH key agreement for automatic application-layer crypto.

Peers exchange 32-byte Curve25519 public keys during transport handshake and derive a shared 32-byte ORTCE1 key with HKDF-SHA256. Node ids are mixed into the HKDF info string in sorted order so both sides derive the same key.

Structs§

KeyAgreement

Enums§

KeyAgreementError

Constants§

KEY_AGREEMENT_HKDF_INFO
KEY_ALGORITHM
PUBLIC_KEY_BYTES

Functions§

derive_crypto_key
key_fingerprint