build: clang-13 support 87/34287/3
authorDamjan Marion <damarion@cisco.com>
Fri, 29 Oct 2021 20:08:39 +0000 (22:08 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 2 Nov 2021 17:32:28 +0000 (17:32 +0000)
Type: make
Change-Id: I20770650d7e0475ee7791da4d5df941792bf7741
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/CMakeLists.txt
src/plugins/crypto_native/aes.h
src/plugins/crypto_native/aes_cbc.c

index 0448a5b..75e4253 100644 (file)
@@ -14,6 +14,7 @@
 cmake_minimum_required(VERSION 3.10)
 
 set(CMAKE_C_COMPILER_NAMES
+  clang-13
   clang-12
   clang-11
   clang-10
index 24b111a..98555f2 100644 (file)
@@ -178,7 +178,7 @@ aes128_key_assist (u8x16 * rk, u8x16 r)
 }
 
 static_always_inline void
-aes128_key_expand (u8x16 * rk, u8x16 const *k)
+aes128_key_expand (u8x16 *rk, u8x16u const *k)
 {
   rk[0] = k[0];
   aes128_key_assist (rk + 1, aes_keygen_assist (rk[0], 0x01));
index c8ec37d..d2670cf 100644 (file)
@@ -149,7 +149,7 @@ aes_cbc_dec_permute (u8x64 a, u8x64 b)
 }
 
 static_always_inline void
-vaes_cbc_dec (u8x64 * k, u8x64u * src, u8x64u * dst, u8x16 * iv, int count,
+vaes_cbc_dec (u8x64 *k, u8x64u *src, u8x64u *dst, u8x16u *iv, int count,
              aes_key_size_t rounds)
 {
   u8x64 f, r[4], c[4] = { };