circuitpadding_machines.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (c) 2018 The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. /**
  4. * \file circuitpadding_machines.h
  5. * \brief Header file for circuitpadding_machines.c.
  6. **/
  7. #ifndef TOR_CIRCUITPADDING_MACHINES_H
  8. #define TOR_CIRCUITPADDING_MACHINES_H
  9. void circpad_machine_relay_hide_intro_circuits(smartlist_t *machines_sl);
  10. void circpad_machine_client_hide_intro_circuits(smartlist_t *machines_sl);
  11. void circpad_machine_relay_hide_rend_circuits(smartlist_t *machines_sl);
  12. void circpad_machine_client_hide_rend_circuits(smartlist_t *machines_sl);
  13. #ifdef CIRCUITPADDING_MACHINES_PRIVATE
  14. /** State of the padding machines that actually sends padding */
  15. #define CIRCPAD_STATE_OBFUSCATE_CIRC_SETUP CIRCPAD_STATE_BURST
  16. /** Constants defining the amount of padding that a machine will send to hide
  17. * HS circuits. The actual value is sampled uniformly random between the
  18. * min/max values.
  19. */
  20. /** Minimum number of relay-side padding cells to be sent by this machine */
  21. #define INTRO_MACHINE_MINIMUM_PADDING 7
  22. /** Maximum number of relay-side padding cells to be sent by this machine.
  23. * The actual value will be sampled between the min and max.*/
  24. #define INTRO_MACHINE_MAXIMUM_PADDING 10
  25. #endif /* defined(CIRCUITPADDING_MACHINES_PRIVATE) */
  26. #endif /* !defined(TOR_CIRCUITPADDING_MACHINES_H) */