From 89c6ec9838541f46a44b3610dd2eec6b5f13ff56 Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Sun, 31 Mar 2024 16:54:47 +0800 Subject: [PATCH] Update sm4_cl.c --- src/sm4_cl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sm4_cl.c b/src/sm4_cl.c index b60732f45..5fbe0b3b3 100644 --- a/src/sm4_cl.c +++ b/src/sm4_cl.c @@ -3,7 +3,7 @@ #include #include #include - +#include #define MACOS #ifdef MACOS @@ -282,7 +282,7 @@ int test_sm4_cl_encrypt(void) #define KERNEL(...) #__VA_ARGS__ -const char *sm4_cl_src = KERNEL( +static const char *sm4_cl_src = KERNEL( __constant unsigned char SBOX[256] = { 0xd6, 0x90, 0xe9, 0xfe, 0xcc, 0xe1, 0x3d, 0xb7, 0x16, 0xb6, 0x14, 0xc2, 0x28, 0xfb, 0x2c, 0x05,