summaryrefslogtreecommitdiff
path: root/curve.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-15 18:42:03 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-15 18:42:03 +0200
commit5bc9299f0d1b0baf220b75da86520606e87c4b3a (patch)
treefb520a3b34349fb588171ce85bb274d0b948d04b /curve.h
parentb7609f8d52cc2dbd1b3b2c08e95e7529368a951c (diff)
curve: simplify curve25519_proto_init and others
Simplify the function curve25519_proto_init() and also have minor cleanups in other related ones. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'curve.h')
-rw-r--r--curve.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/curve.h b/curve.h
index a754c9b..8e43f7e 100644
--- a/curve.h
+++ b/curve.h
@@ -23,9 +23,9 @@ struct curve25519_struct {
extern void curve25519_selftest(void);
extern void curve25519_alloc_or_maybe_die(struct curve25519_struct *curve);
extern void curve25519_free(void *curve);
+extern void curve25519_proto_init(struct curve25519_proto *proto, unsigned char *pubkey_remote, size_t len);
extern int curve25519_pubkey_hexparse_32(unsigned char *bin, size_t blen, const char *ascii, size_t alen);
-extern int curve25519_proto_init(struct curve25519_proto *proto, unsigned char *pubkey_remote, size_t len,
- char *home, int server);
+
extern ssize_t curve25519_encode(struct curve25519_struct *curve, struct curve25519_proto *proto,
unsigned char *plaintext, size_t size, unsigned char **chipertext);
extern ssize_t curve25519_decode(struct curve25519_struct *curve, struct curve25519_proto *proto,