summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-03-08 22:22:11 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-03-08 22:22:11 +0800
commitb4b11c8155b09e4d56925d2d4336c10d802adf11 (patch)
tree04052a129dbedc3c9ea4fe2692911d571156d0ac /ecdsa.h
parentf82933108ded556e2fbd07315d52bdf4c2d4ad09 (diff)
#error if no ecc size is chosen
Diffstat (limited to 'ecdsa.h')
-rw-r--r--ecdsa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecdsa.h b/ecdsa.h
index bb3a18e..e86a038 100644
--- a/ecdsa.h
+++ b/ecdsa.h
@@ -16,7 +16,7 @@
#elif DROPBEAR_ECC_521
#define ECDSA_DEFAULT_SIZE 521
#else
-#define ECDSA_DEFAULT_SIZE 0
+#error ECDSA can't be enabled without enabling at least one size (256, 384, 521)
#endif
ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);