# HG changeset patch # User Matt Johnston # Date 1519654741 -28800 # Node ID 016b86f03e21be804c1e802da9867197038d8b01 # Parent 940828026f2839b67b009ade69e7b33abcd92406 Change default ecdsa size to 256 diff -r 940828026f28 -r 016b86f03e21 ecdsa.h --- a/ecdsa.h Mon Feb 26 22:14:11 2018 +0800 +++ b/ecdsa.h Mon Feb 26 22:19:01 2018 +0800 @@ -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