Mercurial > dropbear
comparison dss.h @ 1413:79582b52a791 fuzz
check p and q lengths
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 16 Jun 2017 22:35:18 +0800 |
parents | 750ec4ec4cbe |
children | 06d52bcb8094 |
comparison
equal
deleted
inserted
replaced
1411:798854f62430 | 1413:79582b52a791 |
---|---|
39 /* x is the private part */ | 39 /* x is the private part */ |
40 mp_int* x; | 40 mp_int* x; |
41 | 41 |
42 } dropbear_dss_key; | 42 } dropbear_dss_key; |
43 | 43 |
44 #define DSS_P_BITS 1024 | |
45 #define DSS_Q_BITS 160 | |
46 | |
44 void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, buffer *data_buf); | 47 void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, buffer *data_buf); |
45 #if DROPBEAR_SIGNKEY_VERIFY | 48 #if DROPBEAR_SIGNKEY_VERIFY |
46 int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf); | 49 int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf); |
47 #endif | 50 #endif |
48 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key); | 51 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key); |