version 1.1, 2013/11/21 00:45:44 |
version 1.2, 2014/03/26 04:55:35 |
|
|
|
|
void chachapoly_init(struct chachapoly_ctx *cpctx, |
void chachapoly_init(struct chachapoly_ctx *cpctx, |
const u_char *key, u_int keylen) |
const u_char *key, u_int keylen) |
__attribute__((__bounded__(__buffer__, 2, 3))); |
__bounded((__buffer__, 2, 3)); |
int chachapoly_crypt(struct chachapoly_ctx *cpctx, u_int seqnr, |
int chachapoly_crypt(struct chachapoly_ctx *cpctx, u_int seqnr, |
u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen, |
u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen, |
int do_encrypt); |
int do_encrypt); |
int chachapoly_get_length(struct chachapoly_ctx *cpctx, |
int chachapoly_get_length(struct chachapoly_ctx *cpctx, |
u_int *plenp, u_int seqnr, const u_char *cp, u_int len) |
u_int *plenp, u_int seqnr, const u_char *cp, u_int len) |
__attribute__((__bounded__(__buffer__, 4, 5))); |
__bounded((__buffer__, 4, 5)); |
|
|
#endif /* CHACHA_POLY_AEAD_H */ |
#endif /* CHACHA_POLY_AEAD_H */ |