Skip to content

Commit 651ae68

Browse files
committed
config: Enable using ARIA-GCM without other ciphers
Previously, GCM required enabling either AES or Camellia. However, we also support using GCM with ARIA and without other ciphers. Enable configurations with only ARIA enabled to use GCM.
1 parent 7accf44 commit 651ae68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/mbedtls/check_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
#endif
178178

179179
#if defined(MBEDTLS_GCM_C) && ( \
180-
!defined(MBEDTLS_AES_C) && !defined(MBEDTLS_CAMELLIA_C) )
180+
!defined(MBEDTLS_AES_C) && !defined(MBEDTLS_CAMELLIA_C) && !defined(MBEDTLS_ARIA_C) )
181181
#error "MBEDTLS_GCM_C defined, but not all prerequisites"
182182
#endif
183183

include/mbedtls/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@
13861386
*
13871387
* Module: library/gcm.c
13881388
*
1389-
* Requires: MBEDTLS_AES_C or MBEDTLS_CAMELLIA_C
1389+
* Requires: MBEDTLS_AES_C or MBEDTLS_CAMELLIA_C or MBEDTLS_ARIA_C
13901390
*
13911391
* This module is required to support the TLS ciphersuites that use GCM.
13921392
*/

0 commit comments

Comments
 (0)