summaryrefslogtreecommitdiff
path: root/ecdsa.h
diff options
context:
space:
mode:
Diffstat (limited to 'ecdsa.h')
-rw-r--r--ecdsa.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ecdsa.h b/ecdsa.h
index 592d0c5..312b7cf 100644
--- a/ecdsa.h
+++ b/ecdsa.h
@@ -4,6 +4,16 @@
#include "includes.h"
#include "buffer.h"
+#ifdef DROPBEAR_ECC_256
+#define ECDSA_DEFAULT_SIZE 256
+#elif DROPBEAR_ECC_384
+#define ECDSA_DEFAULT_SIZE 384
+#elif DROPBEAR_ECC_521
+#define ECDSA_DEFAULT_SIZE 521
+#else
+#define ECDSA_DEFAULT_SIZE 0
+#endif
+
ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);
ecc_key *buf_get_ecdsa_pub_key(buffer* buf);
ecc_key *buf_get_ecdsa_priv_key(buffer *buf);