onion_fast.h 783 B

1234567891011121314151617181920212223242526
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2012, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file onion_fast.h
  8. * \brief Header file for onion_fast.c.
  9. **/
  10. #ifndef TOR_ONION_FAST_H
  11. #define TOR_ONION_FAST_H
  12. int fast_server_handshake(const uint8_t *key_in,
  13. uint8_t *handshake_reply_out,
  14. uint8_t *key_out,
  15. size_t key_out_len);
  16. int fast_client_handshake(const uint8_t *handshake_state,
  17. const uint8_t *handshake_reply_out,
  18. uint8_t *key_out,
  19. size_t key_out_len);
  20. #endif