summaryrefslogtreecommitdiff
path: root/cipher-chachapoly.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher-chachapoly.c')
-rw-r--r--cipher-chachapoly.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cipher-chachapoly.c b/cipher-chachapoly.c
index 7f31ff4ce..0899c5ad5 100644
--- a/cipher-chachapoly.c
+++ b/cipher-chachapoly.c
@@ -14,7 +14,7 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17/* $OpenBSD: cipher-chachapoly.c,v 1.7 2015/01/14 10:24:42 markus Exp $ */ 17/* $OpenBSD: cipher-chachapoly.c,v 1.8 2016/08/03 05:41:57 djm Exp $ */
18 18
19#include "includes.h" 19#include "includes.h"
20 20
@@ -28,7 +28,8 @@
28#include "ssherr.h" 28#include "ssherr.h"
29#include "cipher-chachapoly.h" 29#include "cipher-chachapoly.h"
30 30
31int chachapoly_init(struct chachapoly_ctx *ctx, 31int
32chachapoly_init(struct chachapoly_ctx *ctx,
32 const u_char *key, u_int keylen) 33 const u_char *key, u_int keylen)
33{ 34{
34 if (keylen != (32 + 32)) /* 2 x 256 bit keys */ 35 if (keylen != (32 + 32)) /* 2 x 256 bit keys */