onion_tap.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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_tap.h
  8. * \brief Header file for onion_tap.c.
  9. **/
  10. #ifndef TOR_ONION_TAP_H
  11. #define TOR_ONION_TAP_H
  12. int onion_skin_create(crypto_pk_t *router_key,
  13. crypto_dh_t **handshake_state_out,
  14. char *onion_skin_out);
  15. int onion_skin_server_handshake(const char *onion_skin,
  16. crypto_pk_t *private_key,
  17. crypto_pk_t *prev_private_key,
  18. char *handshake_reply_out,
  19. char *key_out,
  20. size_t key_out_len);
  21. int onion_skin_client_handshake(crypto_dh_t *handshake_state,
  22. const char *handshake_reply,
  23. char *key_out,
  24. size_t key_out_len);
  25. #endif