comparison ecdsa.h @ 797:45f1bc96f357 ecc

Fix build for dropbearkey and ecdsa with certain options
author Matt Johnston <matt@ucc.asn.au>
date Thu, 09 May 2013 23:24:58 +0800
parents 7f604f9b3756
children 4365e12c68e6 5128e525c8fa
comparison
equal deleted inserted replaced
795:7f604f9b3756 797:45f1bc96f357
2 #define _ECDSA_H_ 2 #define _ECDSA_H_
3 3
4 #include "includes.h" 4 #include "includes.h"
5 #include "buffer.h" 5 #include "buffer.h"
6 #include "signkey.h" 6 #include "signkey.h"
7
8 #ifdef DROPBEAR_ECDSA
7 9
8 #ifdef DROPBEAR_ECC_256 10 #ifdef DROPBEAR_ECC_256
9 #define ECDSA_DEFAULT_SIZE 256 11 #define ECDSA_DEFAULT_SIZE 256
10 #elif DROPBEAR_ECC_384 12 #elif DROPBEAR_ECC_384
11 #define ECDSA_DEFAULT_SIZE 384 13 #define ECDSA_DEFAULT_SIZE 384
23 enum signkey_type ecdsa_signkey_type(ecc_key * key); 25 enum signkey_type ecdsa_signkey_type(ecc_key * key);
24 26
25 void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf); 27 void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf);
26 int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf); 28 int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf);
27 29
30 #endif
31
28 #endif // _ECDSA_H_ 32 #endif // _ECDSA_H_