xxx-crypto-requirements.txt 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. This draft is intended to specify the meaning of ‘secure’ for a Tor
  2. circuit protocol, hopefully in enough detail that
  3. mathematically-inclined cryptographers can use this definition to
  4. prove that a Tor circuit protocol (or component thereof) is secure
  5. under reasonably well-accepted assumptions.
  6. Tor's current circuit protocol consists of the CREATE, CREATED, RELAY,
  7. DESTROY, CREATE_FAST, CREATED_FAST, and RELAY_EARLY cells (including
  8. all subtypes of RELAY and RELAY_EARLY cells). Tor currently has two
  9. circuit-extension handshake protocols: one consists of the CREATE and
  10. CREATED cells; the other, used only over the TLS connection to the
  11. first node in a circuit, consists of the CREATE_FAST and CREATED_FAST
  12. cells.
  13. 1. Every circuit-extension handshake protocol must provide forward
  14. secrecy -- the protocol must allow both the client and the relay to
  15. destroy, immediately after a circuit is closed, enough key material
  16. that no attacker who can eavesdrop on all handshake and circuit cells
  17. and who can seize and inspect the client and relay after the circuit
  18. is closed will be able to decrypt any non-handshake data sent along
  19. the circuit.
  20. In particular, the protocol must not require that a key which can be
  21. used to decrypt non-handshake data be stored for a predetermined
  22. period of time, as such a key must be written to persistent storage.
  23. 2. Every circuit-extension handshake protocol must specify what key
  24. material must be used only once in order to allow unlinkability of
  25. circuit-extension handshakes.
  26. 3. Every circuit-extension handshake protocol must authenticate the relay
  27. to the client -- an attacker who can eavesdrop on all handshake and
  28. circuit cells and who can participate in handshakes with the client
  29. must not be able to determine a symmetric session key that a circuit
  30. will use without either knowing a secret key corresponding to a
  31. handshake-authentication public key published by the relay or breaking
  32. a cryptosystem for which the relay published a
  33. handshake-authentication public key.
  34. 4. Every circuit-extension handshake protocol must ensure that neither
  35. the client nor the relay can cause the handshake to result in a
  36. predetermined symmetric session key.
  37. 5. Every circuit-extension handshake protocol should ensure that an
  38. attacker who can predict the relay's ephemeral secret input to the
  39. handshake and can eavesdrop on all handshake and circuit cells, but
  40. does not know a secret key corresponding to the
  41. handshake-authentication public key used in the handshake, cannot
  42. break the handshake-authentication public key's cryptosystem, and
  43. cannot predict the client's ephemeral secret input to the handshake,
  44. cannot predict the symmetric session keys used for the resulting
  45. circuit.
  46. 6. The circuit protocol must specify an end-to-end flow-control
  47. mechanism, and must allow for the addition of new mechanisms.
  48. 7. The circuit protocol should specify the statistics to be exchanged
  49. between circuit endpoints in order to support end-to-end flow control,
  50. and should specify how such statistics can be verified.
  51. 8. The circuit protocol should allow an endpoint to verify that the other
  52. endpoint is participating in an end-to-end flow-control protocol
  53. honestly.