From 4706c1d8c15cd5565b59512853c2da9bd4ca26c9 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Wed, 3 Aug 2016 05:41:57 +0000 Subject: upstream commit small refactor of cipher.c: make ciphercontext opaque to callers feedback and ok markus@ Upstream-ID: 094849f8be68c3bdad2c0f3dee551ecf7be87f6f --- cipher-chachapoly.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cipher-chachapoly.c') diff --git a/cipher-chachapoly.c b/cipher-chachapoly.c index 7f31ff4c..0899c5ad 100644 --- a/cipher-chachapoly.c +++ b/cipher-chachapoly.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: cipher-chachapoly.c,v 1.7 2015/01/14 10:24:42 markus Exp $ */ +/* $OpenBSD: cipher-chachapoly.c,v 1.8 2016/08/03 05:41:57 djm Exp $ */ #include "includes.h" @@ -28,7 +28,8 @@ #include "ssherr.h" #include "cipher-chachapoly.h" -int chachapoly_init(struct chachapoly_ctx *ctx, +int +chachapoly_init(struct chachapoly_ctx *ctx, const u_char *key, u_int keylen) { if (keylen != (32 + 32)) /* 2 x 256 bit keys */ -- cgit v1.2.1