Update copyrights to 2021, using "make update-copyright"
[tor.git] / src / lib / defs / dh_sizes.h
blob4fc85cf3bdf88b96078b6d5f68143064e3f99937
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-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 /**
8 * \file dh_sizes.h
10 * \brief Definitions for sizes of Diffie-Hellman groups elements in Z_p.
12 * Tor uses these definitions throughout its codebase, even in parts that
13 * don't actually do any Diffie-Hellman calculations.
14 **/
16 #ifndef TOR_DH_SIZES_H
17 #define TOR_DH_SIZES_H
19 /** Length of our legacy DH keys. */
20 #define DH1024_KEY_LEN (1024/8)
22 #endif /* !defined(TOR_DH_SIZES_H) */