summaryrefslogtreecommitdiffhomepage
path: root/dss.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-16 22:35:18 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-06-16 22:35:18 +0800
commiteb7ca203791f0b152227e8abb65f5109b7719f56 (patch)
treebf08460797eb04937c596a03ef0badbb92c51136 /dss.h
parentaf2caaab7279b14ea2ed92726086c9f8f2935e75 (diff)
check p and q lengths
Diffstat (limited to 'dss.h')
-rw-r--r--dss.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dss.h b/dss.h
index adf2d55..4d11c0a 100644
--- a/dss.h
+++ b/dss.h
@@ -41,6 +41,9 @@ typedef struct {
} dropbear_dss_key;
+#define DSS_P_BITS 1024
+#define DSS_Q_BITS 160
+
void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, buffer *data_buf);
#if DROPBEAR_SIGNKEY_VERIFY
int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf);