Sphinx packet key derivation #
HKDF-Expand of the shared secret into 160 bytes, sliced into five keys.
Equations
Instances For
A len-byte slice of b as a fixed-width vector.
Equations
- Cryptlib.Protocols.Sphinx.KDF.sliceV b off len = Vector.ofFn fun (i : Fin len) => b.data.getD (off + ↑i) 0
Instances For
Derive PacketKeys from a shared secret with HKDF-SHA256.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Derive PacketKeys with an arbitrary KDF.
Equations
- One or more equations did not get rendered due to their size.
Instances For
packetKeysFrom hkdfSha256Expand is sphinxKDF.