From 62dcaa750a18645896cba77473517d2849bbd860 Mon Sep 17 00:00:00 2001 From: Greg Alexander Date: Mon, 28 Dec 2020 23:32:15 -0500 Subject: [PATCH] Enable GCM, too. I'm not clear on what it is but default_options.h says it should be enabled for compatibility if you can spare 6kB of executable size. Anyways, it's new. --- dropbear/localoptions.h | 1 + jni/Android.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/dropbear/localoptions.h b/dropbear/localoptions.h index 0e39e35..44b5433 100644 --- a/dropbear/localoptions.h +++ b/dropbear/localoptions.h @@ -302,3 +302,4 @@ be overridden at runtime with -I. 0 disables idle timeouts */ #define BUNDLED_LIBTOM 1 #define DROPBEAR_ED25519 1 +#define DROPBEAR_ENABLE_GCM_MODE 1 diff --git a/jni/Android.mk b/jni/Android.mk index 8048e68..ff0b8fc 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -30,6 +30,7 @@ DROPBEAR_SRCS := $(DROPBEAR_PATH)/atomicio.c \ $(DROPBEAR_PATH)/ecdsa.c \ $(DROPBEAR_PATH)/ed25519.c \ $(DROPBEAR_PATH)/fake-rfc2553.c \ + $(DROPBEAR_PATH)/gcm.c \ $(DROPBEAR_PATH)/gendss.c \ $(DROPBEAR_PATH)/gened25519.c \ $(DROPBEAR_PATH)/genrsa.c \