summaryrefslogtreecommitdiffhomepage
path: root/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'session.h')
-rw-r--r--session.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/session.h b/session.h
index e436882..01416c9 100644
--- a/session.h
+++ b/session.h
@@ -41,6 +41,8 @@
#if DROPBEAR_PLUGIN
#include "pubkeyapi.h"
#endif
+#include "gcm.h"
+#include "chachapoly.h"
void common_session_init(int sock_in, int sock_out);
void session_loop(void(*loophandler)(void)) ATTRIB_NORETURN;
@@ -81,6 +83,12 @@ struct key_context_directional {
#if DROPBEAR_ENABLE_CTR_MODE
symmetric_CTR ctr;
#endif
+#if DROPBEAR_ENABLE_GCM_MODE
+ dropbear_gcm_state gcm;
+#endif
+#if DROPBEAR_CHACHA20POLY1305
+ dropbear_chachapoly_state chachapoly;
+#endif
} cipher_state;
unsigned char mackey[MAX_MAC_LEN];
int valid;