X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fchacha-poly1305%2Fchacha-poly1305.h;h=e75d984f29acdda7c74fe1e91ddcc5f168eb0d5e;hb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;hp=b558e45029c56ab1cc3dd1bea9d551bf178f9945;hpb=3d787920d51a35e74e442c7265be3b13b69ad8e4;p=tinc diff --git a/src/chacha-poly1305/chacha-poly1305.h b/src/chacha-poly1305/chacha-poly1305.h index b558e450..e75d984f 100644 --- a/src/chacha-poly1305/chacha-poly1305.h +++ b/src/chacha-poly1305/chacha-poly1305.h @@ -5,8 +5,8 @@ typedef struct chacha_poly1305_ctx chacha_poly1305_ctx_t; -extern chacha_poly1305_ctx_t *chacha_poly1305_init(void); extern void chacha_poly1305_exit(chacha_poly1305_ctx_t *); +extern chacha_poly1305_ctx_t *chacha_poly1305_init(void) ATTR_DEALLOCATOR(chacha_poly1305_exit); extern bool chacha_poly1305_set_key(chacha_poly1305_ctx_t *ctx, const uint8_t *key); extern bool chacha_poly1305_encrypt(chacha_poly1305_ctx_t *ctx, uint64_t seqnr, const void *indata, size_t inlen, void *outdata, size_t *outlen);