comparison ecdsa.h @ 1610:96e4c9b2cc00 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Wed, 21 Mar 2018 00:52:02 +0800
parents 99ca393afc56
children
comparison
equal deleted inserted replaced
1580:7f2be495dff6 1610:96e4c9b2cc00
14 #elif DROPBEAR_ECC_384 14 #elif DROPBEAR_ECC_384
15 #define ECDSA_DEFAULT_SIZE 384 15 #define ECDSA_DEFAULT_SIZE 384
16 #elif DROPBEAR_ECC_521 16 #elif DROPBEAR_ECC_521
17 #define ECDSA_DEFAULT_SIZE 521 17 #define ECDSA_DEFAULT_SIZE 521
18 #else 18 #else
19 #define ECDSA_DEFAULT_SIZE 0 19 #error ECDSA cannot be enabled without enabling at least one size (256, 384, 521)
20 #endif 20 #endif
21 21
22 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size); 22 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);
23 ecc_key *buf_get_ecdsa_pub_key(buffer* buf); 23 ecc_key *buf_get_ecdsa_pub_key(buffer* buf);
24 ecc_key *buf_get_ecdsa_priv_key(buffer *buf); 24 ecc_key *buf_get_ecdsa_priv_key(buffer *buf);