summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-10-31 22:49:15 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-10-31 22:49:15 +0800
commit814ab77538b8023f3ede270fcd14da7368913554 (patch)
tree46cd1cbe17aef1b366651da469458e884913256f /ecdsa.h
parent45bd0edae52c07daa2d54ca7f7c0a57d51130791 (diff)
Default to some larger key sizes
--HG-- branch : ecc
Diffstat (limited to 'ecdsa.h')
-rw-r--r--ecdsa.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ecdsa.h b/ecdsa.h
index 84e4000..316235f 100644
--- a/ecdsa.h
+++ b/ecdsa.h
@@ -7,12 +7,12 @@
#ifdef DROPBEAR_ECDSA
-#ifdef DROPBEAR_ECC_256
-#define ECDSA_DEFAULT_SIZE 256
-#elif DROPBEAR_ECC_384
-#define ECDSA_DEFAULT_SIZE 384
-#elif DROPBEAR_ECC_521
+#if defined(DROPBEAR_ECC_521)
#define ECDSA_DEFAULT_SIZE 521
+#elif defined(DROPBEAR_ECC_384)
+#define ECDSA_DEFAULT_SIZE 384
+#elif defined(DROPBEAR_ECC_256)
+#define ECDSA_DEFAULT_SIZE 256
#else
#define ECDSA_DEFAULT_SIZE 0
#endif