summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/cipher-chachapoly.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2014-06-24 01:13:23 +0000
committerDamien Miller <djm@cvs.openbsd.org>2014-06-24 01:13:23 +0000
commit6eeffb4d8cef5c4af07cdfe1568ddd07732d938d (patch)
tree71385fbd9b6f1c30167244402b8c6995b8280b09 /usr.bin/ssh/cipher-chachapoly.h
parent87397b9af873c49c8225e36543de0ab5cc29187c (diff)
New key API: refactor key-related functions to be more library-like,
existing API is offered as a set of wrappers. with and ok markus@ Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew Dempsky and Ron Bowes for a detailed review a few months ago.
Diffstat (limited to 'usr.bin/ssh/cipher-chachapoly.h')
-rw-r--r--usr.bin/ssh/cipher-chachapoly.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/cipher-chachapoly.h b/usr.bin/ssh/cipher-chachapoly.h
index 7948dcdcde0..b7072be7d9d 100644
--- a/usr.bin/ssh/cipher-chachapoly.h
+++ b/usr.bin/ssh/cipher-chachapoly.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher-chachapoly.h,v 1.3 2014/05/02 03:27:54 djm Exp $ */
+/* $OpenBSD: cipher-chachapoly.h,v 1.4 2014/06/24 01:13:21 djm Exp $ */
/*
* Copyright (c) Damien Miller 2013 <djm@mindrot.org>
@@ -28,7 +28,7 @@ struct chachapoly_ctx {
struct chacha_ctx main_ctx, header_ctx;
};
-void chachapoly_init(struct chachapoly_ctx *cpctx,
+int chachapoly_init(struct chachapoly_ctx *cpctx,
const u_char *key, u_int keylen)
__attribute__((__bounded__(__buffer__, 2, 3)));
int chachapoly_crypt(struct chachapoly_ctx *cpctx, u_int seqnr,