summaryrefslogtreecommitdiff
path: root/src/dh_groups.h
diff options
context:
space:
mode:
authorTJ Kolev <tjkolev@gmail.com>2023-02-02 15:10:37 -0600
committerTJ Kolev <tjkolev@gmail.com>2023-02-02 15:10:37 -0600
commitfdcadd906c21dcf2c09a965a6046f7bf9de84a69 (patch)
treef3ca129cb8f9d058a963fafadb707fee26b8a872 /src/dh_groups.h
parent9defeb477aebf0eb575885eb1fd4a4330ce52531 (diff)
downloaddropbear-fdcadd906c21dcf2c09a965a6046f7bf9de84a69.tar.gz
Dropbear SSH - file structure reorg
Separating source and binaries. * Dropbear source files (.c, .h) were moved under a new ./src folder. * Object binaries get generated into the ./obj folder. This helps to keep less cluttered project. tjk :)
Diffstat (limited to 'src/dh_groups.h')
-rw-r--r--src/dh_groups.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/dh_groups.h b/src/dh_groups.h
new file mode 100644
index 0000000..c995937
--- /dev/null
+++ b/src/dh_groups.h
@@ -0,0 +1,26 @@
+#ifndef DROPBEAR_DH_GROUPS_H
+#define DROPBEAR_DH_GROUPS_H
+#include "options.h"
+
+#if DROPBEAR_NORMAL_DH
+
+#if DROPBEAR_DH_GROUP1
+#define DH_P_1_LEN 128
+extern const unsigned char dh_p_1[DH_P_1_LEN];
+#endif
+
+#if DROPBEAR_DH_GROUP14
+#define DH_P_14_LEN 256
+extern const unsigned char dh_p_14[DH_P_14_LEN];
+#endif
+
+#if DROPBEAR_DH_GROUP16
+#define DH_P_16_LEN 512
+extern const unsigned char dh_p_16[DH_P_16_LEN];
+#endif
+
+extern const int DH_G_VAL;
+
+#endif /* DROPBEAR_NORMAL_DH */
+
+#endif