Mercurial > dropbear
comparison dss.h @ 1295:750ec4ec4cbe
Convert #ifdef to #if, other build changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 04 May 2016 15:33:40 +0200 |
parents | deed0571cacc |
children | 79582b52a791 |
comparison
equal
deleted
inserted
replaced
1294:56aba7dedbea | 1295:750ec4ec4cbe |
---|---|
26 #define DROPBEAR_DSS_H_ | 26 #define DROPBEAR_DSS_H_ |
27 | 27 |
28 #include "includes.h" | 28 #include "includes.h" |
29 #include "buffer.h" | 29 #include "buffer.h" |
30 | 30 |
31 #ifdef DROPBEAR_DSS | 31 #if DROPBEAR_DSS |
32 | 32 |
33 typedef struct { | 33 typedef struct { |
34 | 34 |
35 mp_int* p; | 35 mp_int* p; |
36 mp_int* q; | 36 mp_int* q; |
40 mp_int* x; | 40 mp_int* x; |
41 | 41 |
42 } dropbear_dss_key; | 42 } dropbear_dss_key; |
43 | 43 |
44 void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, buffer *data_buf); | 44 void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, buffer *data_buf); |
45 #ifdef DROPBEAR_SIGNKEY_VERIFY | 45 #if DROPBEAR_SIGNKEY_VERIFY |
46 int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf); | 46 int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf); |
47 #endif | 47 #endif |
48 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key); | 48 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key); |
49 int buf_get_dss_priv_key(buffer* buf, dropbear_dss_key *key); | 49 int buf_get_dss_priv_key(buffer* buf, dropbear_dss_key *key); |
50 void buf_put_dss_pub_key(buffer* buf, dropbear_dss_key *key); | 50 void buf_put_dss_pub_key(buffer* buf, dropbear_dss_key *key); |