Mercurial > dropbear
comparison dh_groups.h @ 1702:8f93f37c01de
Allow DH to be completely disabled (#97)
Reduces binary size by ~2kB by default and by 21kB with no other
libtommath functions users, ex. with curve25519 kex and ed25519
key only.
author | Vladislav Grishenko <themiron@users.noreply.github.com> |
---|---|
date | Thu, 28 May 2020 20:01:48 +0500 |
parents | 739b3909c499 |
children | ee6ccc2ecc47 |
comparison
equal
deleted
inserted
replaced
1701:6e5037ae2c1c | 1702:8f93f37c01de |
---|---|
1 #ifndef DROPBEAR_DH_GROUPS_H | 1 #ifndef DROPBEAR_DH_GROUPS_H |
2 #define DROPBEAR_DH_GROUPS_H | 2 #define DROPBEAR_DH_GROUPS_H |
3 #include "options.h" | 3 #include "options.h" |
4 | |
5 #if DROPBEAR_DH_NORMAL | |
4 | 6 |
5 #if DROPBEAR_DH_GROUP1 | 7 #if DROPBEAR_DH_GROUP1 |
6 #define DH_P_1_LEN 128 | 8 #define DH_P_1_LEN 128 |
7 extern const unsigned char dh_p_1[DH_P_1_LEN]; | 9 extern const unsigned char dh_p_1[DH_P_1_LEN]; |
8 #endif | 10 #endif |
15 #if DROPBEAR_DH_GROUP16 | 17 #if DROPBEAR_DH_GROUP16 |
16 #define DH_P_16_LEN 512 | 18 #define DH_P_16_LEN 512 |
17 extern const unsigned char dh_p_16[DH_P_16_LEN]; | 19 extern const unsigned char dh_p_16[DH_P_16_LEN]; |
18 #endif | 20 #endif |
19 | 21 |
20 | |
21 extern const int DH_G_VAL; | 22 extern const int DH_G_VAL; |
22 | 23 |
24 #endif | |
23 | 25 |
24 #endif | 26 #endif |