X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fchacha-poly1305%2Fchachapoly.h;h=5d01f52588e975c2616bf014d787a4d3d83df14c;hb=refs%2Fheads%2Ffeature%2Falt-ciphersuite;hp=ffc9576d14496391f5123f85a7cea1b2df9a5d2a;hpb=4f48176209832913975843b6cf3bf1753152da3f;p=tinc diff --git a/src/chacha-poly1305/chachapoly.h b/src/chacha-poly1305/chachapoly.h index ffc9576d..5d01f525 100644 --- a/src/chacha-poly1305/chachapoly.h +++ b/src/chacha-poly1305/chachapoly.h @@ -52,8 +52,6 @@ int chachapoly_init(struct chachapoly_ctx *ctx, const void *key, int key_len); * * \param ctx context data * \param nonce nonce (12 bytes) - * \param ad associated data - * \param ad_len associated data length in bytes * \param input plaintext/ciphertext input * \param input_len input length in bytes; * \param output plaintext/ciphertext output @@ -65,7 +63,7 @@ int chachapoly_init(struct chachapoly_ctx *ctx, const void *key, int key_len); * failed when decrypting */ int chachapoly_crypt(struct chachapoly_ctx *ctx, const void *nonce, - const void *ad, int ad_len, void *input, int input_len, + void *input, int input_len, void *output, void *tag, int tag_len, int encrypt); /** @@ -76,7 +74,7 @@ int chachapoly_crypt(struct chachapoly_ctx *ctx, const void *nonce, * chachapoly_crypt. */ int chachapoly_crypt_short(struct chachapoly_ctx *ctx, const void *nonce, - const void *ad, int ad_len, void *input, int input_len, + void *input, int input_len, void *output, void *tag, int tag_len, int encrypt); #endif