dh_sizes.h 604 B

12345678910111213141516171819202122
  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 dh_sizes.h
  8. * \brief Definitions for sizes of Diffie-Hellman groups elements in Z_p.
  9. *
  10. * Tor uses these definitions throughout its codebase, even in parts that
  11. * don't actually do any Diffie-Hellman calculations.
  12. **/
  13. #ifndef TOR_DH_SIZES_H
  14. #define TOR_DH_SIZES_H
  15. /** Length of our legacy DH keys. */
  16. #define DH1024_KEY_LEN (1024/8)
  17. #endif