Return to cipher-chachapoly.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.7, 2015/01/14 10:24:42 | version 1.8, 2016/08/03 05:41:57 | ||
---|---|---|---|
|
|
||
#include "ssherr.h" | #include "ssherr.h" | ||
#include "cipher-chachapoly.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) | const u_char *key, u_int keylen) | ||
{ | { | ||
if (keylen != (32 + 32)) /* 2 x 256 bit keys */ | if (keylen != (32 + 32)) /* 2 x 256 bit keys */ |