signing.h 799 B

1234567891011121314151617181920212223
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file signing.h
  8. * \brief Header file for signing.c.
  9. **/
  10. #ifndef TOR_SIGNING_H
  11. #define TOR_SIGNING_H
  12. #define DIROBJ_MAX_SIG_LEN 256
  13. char *router_get_dirobj_signature(const char *digest,
  14. size_t digest_len,
  15. const crypto_pk_t *private_key);
  16. int router_append_dirobj_signature(char *buf, size_t buf_len,
  17. const char *digest,
  18. size_t digest_len,
  19. crypto_pk_t *private_key);
  20. #endif