@@ -111,7 +111,7 @@ Then run normal make or cmake etc.
111111 #if defined(MBEDTLS_CTR_DRBG_C) && !defined(MBEDTLS_AES_C)
112112 #error "MBEDTLS_CTR_DRBG_C defined, but not all prerequisites"
113113 #endif
114- @@ -897 ,3 +901 ,4 @@
114+ @@ -956 ,3 +960 ,4 @@
115115 typedef int mbedtls_iso_c_forbids_empty_translation_units;
116116
117117 #endif /* MBEDTLS_CHECK_CONFIG_H */
@@ -126,7 +126,7 @@ Then run normal make or cmake etc.
126126 * library/aria.c
127127 * library/timing.c
128128 * include/mbedtls/bn_mul.h
129- @@ -2313 ,6 +2314 ,21 @@
129+ @@ -2331 ,6 +2332 ,21 @@
130130 #define MBEDTLS_AESNI_C
131131
132132 /**
@@ -158,10 +158,10 @@ Then run normal make or cmake etc.
158158+ #if defined(MBEDTLS_ARMV8CE_AES_C)
159159+ #include "mbedtls/armv8ce_aes.h"
160160+ #endif
161- #if defined(MBEDTLS_SELF_TEST)
162- #if defined(MBEDTLS_PLATFORM_C)
163161 #include "mbedtls/platform.h"
164- @@ -999,6 +1001,11 @@ int mbedtls_aes_crypt_ecb( mbedtls_aes_c
162+
163+ #if !defined(MBEDTLS_AES_ALT)
164+ @@ -992,6 +994,11 @@ int mbedtls_aes_crypt_ecb( mbedtls_aes_c
165165 return( mbedtls_aesni_crypt_ecb( ctx, mode, input, output ) );
166166 #endif
167167
@@ -330,18 +330,18 @@ Then run normal make or cmake etc.
330330 base64.c
331331--- a/library/gcm.c
332332+++ b/library/gcm.c
333- @@ -41 ,6 +41 ,10 @@
333+ @@ -42 ,6 +42 ,10 @@
334334 #include "mbedtls/aesni.h"
335335 #endif
336336
337337+ #if defined(MBEDTLS_ARMV8CE_AES_C)
338338+ #include "mbedtls/armv8ce_aes.h"
339339+ #endif
340340+
341- #if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_AES_C )
342- #include "mbedtls/aes.h"
343- #include "mbedtls/platform.h"
344- @@ -87 ,6 +91 ,12 @@ static int gcm_gen_table( mbedtls_gcm_co
341+ #if ! defined(MBEDTLS_GCM_ALT )
342+
343+ /* Parameter validation macros */
344+ @@ -79 ,6 +83 ,12 @@ static int gcm_gen_table( mbedtls_gcm_co
345345 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, h, 16, h, &olen ) ) != 0 )
346346 return( ret );
347347
@@ -354,7 +354,7 @@ Then run normal make or cmake etc.
354354 /* pack h as two 64-bits ints, big-endian */
355355 hi = MBEDTLS_GET_UINT32_BE( h, 0 );
356356 lo = MBEDTLS_GET_UINT32_BE( h, 4 );
357- @@ -196 ,6 +206 ,11 @@ static void gcm_mult( mbedtls_gcm_contex
357+ @@ -188 ,6 +198 ,11 @@ static void gcm_mult( mbedtls_gcm_contex
358358 unsigned char lo, hi, rem;
359359 uint64_t zh, zl;
360360
0 commit comments