From 26c3b0a4b18fc7c24a00499d3f5a909509ce2bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 4 Jun 2018 12:06:23 +0200 Subject: [PATCH] Fix return type of internal function Fixes incomplete change in f4f01b6b7ad1 --- library/chachapoly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/chachapoly.c b/library/chachapoly.c index ba3cf3c0c..8f785883b 100644 --- a/library/chachapoly.c +++ b/library/chachapoly.c @@ -74,7 +74,7 @@ static int chachapoly_pad_aad( mbedtls_chachapoly_context *ctx ) * * \param ctx The ChaCha20-Poly1305 context. */ -static void chachapoly_pad_ciphertext( mbedtls_chachapoly_context *ctx ) +static int chachapoly_pad_ciphertext( mbedtls_chachapoly_context *ctx ) { uint32_t partial_block_len = (uint32_t) ( ctx->ciphertext_len % 16U ); unsigned char zeroes[15];