summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-28 23:17:43 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-28 23:17:43 +0800
commit79660f2eb1c64bcac9ba0084f9d3822ee88dbd5c (patch)
tree3a5e25381d08d23b881300c9d5c58c8ac439ea29 /ecdsa.h
parent5c87c6a435ab1791294c412abe32aa629b42fdc7 (diff)
more ecdsa signkey work, not correct
--HG-- branch : ecc
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);