diff options
author | djm@openbsd.org <djm@openbsd.org> | 2016-08-03 05:41:57 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-08-09 09:06:52 +1000 |
commit | 4706c1d8c15cd5565b59512853c2da9bd4ca26c9 (patch) | |
tree | 81ff9de3bdf3627b382bb4b808cf0e0612f4424f /cipher-chachapoly.c | |
parent | e600348a7afd6325cc5cd783cb424065cbc20434 (diff) | |
download | openssh-git-4706c1d8c15cd5565b59512853c2da9bd4ca26c9.tar.gz |
upstream commit
small refactor of cipher.c: make ciphercontext opaque to
callers feedback and ok markus@
Upstream-ID: 094849f8be68c3bdad2c0f3dee551ecf7be87f6f
Diffstat (limited to 'cipher-chachapoly.c')
-rw-r--r-- | cipher-chachapoly.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |