diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-28 23:17:43 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-28 23:17:43 +0800 |
commit | 79660f2eb1c64bcac9ba0084f9d3822ee88dbd5c (patch) | |
tree | 3a5e25381d08d23b881300c9d5c58c8ac439ea29 /ecdsa.h | |
parent | 5c87c6a435ab1791294c412abe32aa629b42fdc7 (diff) |
more ecdsa signkey work, not correct
--HG--
branch : ecc
Diffstat (limited to 'ecdsa.h')
-rw-r--r-- | ecdsa.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |