每种 Key 的所有者 · 生命周期 · 公私属性 · 解决的问题 · 派生关系
不熟悉以下底层概念? 这里是 30 秒回顾。
long-term (终身, 如 IK), medium-term (周/月, 如 SPK), ephemeral (单会话, 如 EK), derived (单条消息, 如 MK)。
越短命 → 前向安全越强
Forward Secrecy 保护过去 (KDF 单向), Post-Compromise Security 保护未来 (DH 注入新熵)。Signal 同时提供。
FS ⇄ PCS · 时间方向上对称
派生 (Derivation) = 单方计算 (KDF), 协商 (Agreement) = 双方互动 (DH)。两者协同支撑整个协议。
derive: KDF · agree: DH
Olm/vodozemac 的消息 struct, 5 个字段: version / ratchet_key / chain_index / ciphertext / mac。直接对应本图谱。
pub struct Message { version, ratchet_key,
chain_index, ciphertext, mac }