tor  0.4.1.0-alpha-dev
x25519_sizes.h
Go to the documentation of this file.
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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
16 #ifndef TOR_X25519_SIZES_H
17 #define TOR_X25519_SIZES_H
18 
20 #define CURVE25519_PUBKEY_LEN 32
21 
22 #define CURVE25519_SECKEY_LEN 32
23 
24 #define CURVE25519_OUTPUT_LEN 32
25 
26 #define ED25519_PUBKEY_LEN 32
27 #define ED25519_SECKEY_LEN 64
28 #define ED25519_SECKEY_SEED_LEN 32
29 #define ED25519_SIG_LEN 64
30 
31 #define CURVE25519_BASE64_PADDED_LEN 44
32 
33 #define ED25519_BASE64_LEN 43
34 #define ED25519_SIG_BASE64_LEN 86
35 
36 #endif