1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Copyright (c) 2001, Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2021, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file x25519_sizes.h
* \brief Definitions for sizes of x25519 keys and elements.
*
* Tor uses these definitions throughout its codebase, even in parts that
* don't actually do any x25519 calculations.
**/
/** Length of a curve25519 public key when encoded. */
/** Length of a curve25519 secret key when encoded. */
/** Length of the result of a curve25519 handshake. */
/** Length of an Ed25519 public key */
/** Length of an Ed25519 secret key */
/** Length of the seed that is ordinarily expanded to an Ed25519 secret
* key. */
/** Length of an Ed25519 signature. */
/** Length of a Curve25519 key when encoded in base 64, with padding. */
/** Length of a Curve25519 key when encoded in base 64, without padding. */
/** Length of a Ed25519 key when encoded in base 64, without padding. */
/** Length of a Ed25519 signature when encoded in base 64, without padding. */
/* !defined(TOR_X25519_SIZES_H) */