digest_sizes.h 655 B

123456789101112131415161718
  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. #ifndef TOR_DIGEST_SIZES_H
  7. #define TOR_DIGEST_SIZES_H
  8. /** Length of the output of our message digest. */
  9. #define DIGEST_LEN 20
  10. /** Length of the output of our second (improved) message digests. (For now
  11. * this is just sha256, but it could be any other 256-bit digest.) */
  12. #define DIGEST256_LEN 32
  13. /** Length of the output of our 64-bit optimized message digests (SHA512). */
  14. #define DIGEST512_LEN 64
  15. #endif