comparison ecdsa.h @ 845:774ad9b112ef

merge yet again
author Matt Johnston <matt@ucc.asn.au>
date Fri, 01 Nov 2013 00:21:59 +0800
parents 4365e12c68e6 5128e525c8fa
children b298bb438625
comparison
equal deleted inserted replaced
844:68facbc41273 845:774ad9b112ef
5 #include "buffer.h" 5 #include "buffer.h"
6 #include "signkey.h" 6 #include "signkey.h"
7 7
8 #ifdef DROPBEAR_ECDSA 8 #ifdef DROPBEAR_ECDSA
9 9
10 #if defined(DROPBEAR_ECC_256) 10 #if defined(DROPBEAR_ECC_521)
11 #define ECDSA_DEFAULT_SIZE 256 11 #define ECDSA_DEFAULT_SIZE 521
12 #elif defined(DROPBEAR_ECC_384) 12 #elif defined(DROPBEAR_ECC_384)
13 #define ECDSA_DEFAULT_SIZE 384 13 #define ECDSA_DEFAULT_SIZE 384
14 #elif defined(DROPBEAR_ECC_521) 14 #elif defined(DROPBEAR_ECC_256)
15 #define ECDSA_DEFAULT_SIZE 521 15 #define ECDSA_DEFAULT_SIZE 256
16 #else 16 #else
17 #define ECDSA_DEFAULT_SIZE 0 17 #define ECDSA_DEFAULT_SIZE 0
18 #endif 18 #endif
19 19
20 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size); 20 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);