summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-14 00:50:03 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-14 00:50:03 +0800
commit5c87c6a435ab1791294c412abe32aa629b42fdc7 (patch)
tree6986d3354125438325538674274b82455ce8589a /ecdsa.h
parentf842712551cc458532aaddb6f140fe1286cfa9fb (diff)
A bit of work on ecdsa for host/auth keys
--HG-- branch : ecc
Diffstat (limited to 'ecdsa.h')
-rw-r--r--ecdsa.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ecdsa.h b/ecdsa.h
index e69de29..592d0c5 100644
--- a/ecdsa.h
+++ b/ecdsa.h
@@ -0,0 +1,16 @@
+#ifndef _ECDSA_H_
+#define _ECDSA_H_
+
+#include "includes.h"
+#include "buffer.h"
+
+ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);
+ecc_key *buf_get_ecdsa_pub_key(buffer* buf);
+ecc_key *buf_get_ecdsa_priv_key(buffer *buf);
+void buf_put_ecdsa_pub_key(buffer *buf, ecc_key *key);
+void buf_put_ecdsa_priv_key(buffer *buf, ecc_key *key);
+
+void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf);
+int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf);
+
+#endif // _ECDSA_H_ \ No newline at end of file