From c796573487178f527654e871d71352b40ca01caa Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Fri, 27 Jul 2018 17:13:39 +0100 Subject: [PATCH] Add Chacha dependency to the stream cipher field When MBEDTLS_ARC4_C and MBEDTLS_CIPHER_NULL_CIPHER were disabled, the stream cipher function wasn't being include in the cipher struct, yet Chacha20 requires it. --- include/mbedtls/cipher.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/mbedtls/cipher.h b/include/mbedtls/cipher.h index ea0ce983f..7f3477a42 100644 --- a/include/mbedtls/cipher.h +++ b/include/mbedtls/cipher.h @@ -45,7 +45,8 @@ #define MBEDTLS_CIPHER_MODE_WITH_PADDING #endif -#if defined(MBEDTLS_ARC4_C) || defined(MBEDTLS_CIPHER_NULL_CIPHER) +#if defined(MBEDTLS_ARC4_C) || defined(MBEDTLS_CIPHER_NULL_CIPHER) || \ + defined(MBEDTLS_CHACHA20_C) #define MBEDTLS_CIPHER_MODE_STREAM #endif