comparison dh_groups.h @ 1248:739b3909c499

Get rid of group15, move group16 to sha512. New groups are disabled by default pending draft-ietf-curdle-ssh-kex-sha2-02 being finalised
author Matt Johnston <matt@ucc.asn.au>
date Sat, 12 Mar 2016 16:21:13 +0800
parents 6a7938ba004a
children 8f93f37c01de
comparison
equal deleted inserted replaced
1247:428d83f2e5db 1248:739b3909c499
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 4
5 #if DROPBEAR_DH_GROUP1
5 #define DH_P_1_LEN 128 6 #define DH_P_1_LEN 128
6 extern const unsigned char dh_p_1[DH_P_1_LEN]; 7 extern const unsigned char dh_p_1[DH_P_1_LEN];
8 #endif
9
10 #if DROPBEAR_DH_GROUP14
7 #define DH_P_14_LEN 256 11 #define DH_P_14_LEN 256
8 extern const unsigned char dh_p_14[DH_P_14_LEN]; 12 extern const unsigned char dh_p_14[DH_P_14_LEN];
9
10 #ifdef DROPBEAR_DH_GROUP15
11 #define DH_P_15_LEN 384
12 extern const unsigned char dh_p_15[DH_P_15_LEN];
13 #endif 13 #endif
14 14
15 #ifdef DROPBEAR_DH_GROUP16 15 #if DROPBEAR_DH_GROUP16
16 #define DH_P_16_LEN 512 16 #define DH_P_16_LEN 512
17 extern const unsigned char dh_p_16[DH_P_16_LEN]; 17 extern const unsigned char dh_p_16[DH_P_16_LEN];
18 #endif 18 #endif
19 19
20 20