From 246f24eda8bba15b04c7c7325af5092091c1751e Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 26 Feb 2018 22:19:01 +0800 Subject: [PATCH] Change default ecdsa size to 256 --- ecdsa.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ecdsa.h b/ecdsa.h index 8d20474..bb3a18e 100644 --- a/ecdsa.h +++ b/ecdsa.h @@ -7,13 +7,14 @@ #if DROPBEAR_ECDSA -/* Prefer the larger size - it's fast anyway */ -#if DROPBEAR_ECC_521 -#define ECDSA_DEFAULT_SIZE 521 +/* prefer 256 or 384 since those are SHOULD for + draft-ietf-curdle-ssh-kex-sha2.txt */ +#if DROPBEAR_ECC_256 +#define ECDSA_DEFAULT_SIZE 256 #elif DROPBEAR_ECC_384 #define ECDSA_DEFAULT_SIZE 384 -#elif DROPBEAR_ECC_256 -#define ECDSA_DEFAULT_SIZE 256 +#elif DROPBEAR_ECC_521 +#define ECDSA_DEFAULT_SIZE 521 #else #define ECDSA_DEFAULT_SIZE 0 #endif