x25519_sizes.h File Reference

Go to the source code of this file.


#define CURVE25519_PUBKEY_LEN   32
#define CURVE25519_SECKEY_LEN   32
#define CURVE25519_OUTPUT_LEN   32
#define ED25519_PUBKEY_LEN   32
#define ED25519_SECKEY_LEN   64
#define ED25519_SECKEY_SEED_LEN   32
#define ED25519_SIG_LEN   64
#define CURVE25519_BASE64_PADDED_LEN   44
#define ED25519_BASE64_LEN   43
#define ED25519_SIG_BASE64_LEN   86

Detailed Description

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.

Definition in file x25519_sizes.h.

Macro Definition Documentation


#define CURVE25519_OUTPUT_LEN   32

Length of the result of a curve25519 handshake.

Definition at line 24 of file x25519_sizes.h.


#define CURVE25519_PUBKEY_LEN   32

Length of a curve25519 public key when encoded.

Definition at line 20 of file x25519_sizes.h.


#define CURVE25519_SECKEY_LEN   32

Length of a curve25519 secret key when encoded.

Definition at line 22 of file x25519_sizes.h.