summaryrefslogtreecommitdiff
path: root/code/ecp/cr.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-03-15 21:37:11 +0100
committerUros Majstorovic <majstor@majstor.org>2018-03-15 21:37:11 +0100
commit8755ad4c0b0652f16d3505ed72ed3d8310a35c6f (patch)
tree6d7c3b93563bf64b811bb198e13ebbe7d7907e67 /code/ecp/cr.h
parentb00f381106c941ea03e5ea04dc08e6c4b9e582fa (diff)
removed *IFace from context
Diffstat (limited to 'code/ecp/cr.h')
-rw-r--r--code/ecp/cr.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/code/ecp/cr.h b/code/ecp/cr.h
new file mode 100644
index 0000000..05a95d7
--- /dev/null
+++ b/code/ecp/cr.h
@@ -0,0 +1,13 @@
+int ecp_cr_dh_mkpair(ecp_dh_public_t *pub, ecp_dh_private_t *priv, ecp_rng_t *rand_buf);
+int ecp_cr_dh_shsec(ecp_aead_key_t *shared, ecp_dh_public_t *pub, ecp_dh_private_t *priv);
+unsigned char *ecp_cr_dh_pub_get_buf(ecp_dh_public_t *p);
+void ecp_cr_dh_pub_to_buf(unsigned char *b, ecp_dh_public_t *p);
+void ecp_cr_dh_pub_from_buf(ecp_dh_public_t *p, unsigned char *b) ;
+int ecp_cr_dh_pub_eq(unsigned char *p1, ecp_dh_public_t *p2) ;
+unsigned int ecp_cr_dh_pub_hash_fn(unsigned char *p);
+int ecp_cr_dh_pub_hash_eq(unsigned char *p1, unsigned char *p2);
+ssize_t ecp_cr_aead_enc(unsigned char *ct, size_t cl, unsigned char *pt, size_t pl, ecp_aead_key_t *k, unsigned char *n);
+ssize_t ecp_cr_aead_dec(unsigned char *pt, size_t pl, unsigned char *ct, size_t cl, ecp_aead_key_t *k, unsigned char *n) ;
+int ecp_cr_dsa_mkpair(ecp_dsa_public_t *pub, ecp_dsa_private_t *priv, ecp_rng_t *rand_buf);
+int ecp_cr_dsa_sign(unsigned char *sig, unsigned char *m, size_t ml, ecp_dsa_public_t *p, ecp_dsa_private_t *s) ;
+int ecp_cr_dsa_verify(unsigned char *m, size_t ml, unsigned char *sig, ecp_dsa_public_t *p);