Single-use reply blocks (SURB) #
The SURB operations shared by NIKE- and KEM-Sphinx.
def
Cryptlib.Protocols.Sphinx.SURB.decryptSURBPayload
(cipher : Primitives.WideBlockCipher.WideBlockCipher)
(geom : Geometry.Geometry)
(keys payload : ByteArray)
:
Decrypt a SURB reply payload. keys holds nrHops (key[48] ++ iv[16]) chunks in reverse
hop order; all but the last encrypt, the last decrypts.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cryptlib.Protocols.Sphinx.SURB.newPacketFromSURB
(cipher : Primitives.WideBlockCipher.WideBlockCipher)
(geom : Geometry.Geometry)
(surb payload : ByteArray)
:
Build a reply packet from a SURB and a payload. surb is
header ‖ firstHopID(32) ‖ sprpKey(48) ‖ sprpIV(16). Returns (packet, firstHopID).
Equations
- One or more equations did not get rendered due to their size.