mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-01 07:24:02 +08:00
Remove ZUC warnings
This commit is contained in:
28
src/zuc.c
28
src/zuc.c
@@ -88,20 +88,20 @@ static const uint8_t S1[256] = {
|
||||
{int j; for (j=0; j<15;j++) LFSR[j]=LFSR[j+1];} \
|
||||
LFSR[15] = V
|
||||
|
||||
#define LFSRWithWorkMode() \
|
||||
{ \
|
||||
int j; \
|
||||
uint64_t a = LFSR[0]; \
|
||||
a += ((uint64_t)LFSR[0]) << 8; \
|
||||
a += ((uint64_t)LFSR[4]) << 20; \
|
||||
a += ((uint64_t)LFSR[10]) << 21; \
|
||||
a += ((uint64_t)LFSR[13]) << 17; \
|
||||
a += ((uint64_t)LFSR[15]) << 15; \
|
||||
a = (a & 0x7fffffff) + (a >> 31); \
|
||||
V = (a & 0x7fffffff) + (a >> 31); \
|
||||
for (j = 0; j < 15; j++) \
|
||||
LFSR[j] = LFSR[j+1]; \
|
||||
LFSR[15] = V; \
|
||||
#define LFSRWithWorkMode() \
|
||||
{ \
|
||||
int j; \
|
||||
uint64_t a = LFSR[0]; \
|
||||
a += ((uint64_t)LFSR[0]) << 8; \
|
||||
a += ((uint64_t)LFSR[4]) << 20; \
|
||||
a += ((uint64_t)LFSR[10]) << 21; \
|
||||
a += ((uint64_t)LFSR[13]) << 17; \
|
||||
a += ((uint64_t)LFSR[15]) << 15; \
|
||||
a = (a & 0x7fffffff) + (a >> 31); \
|
||||
V = (uint32_t)((a & 0x7fffffff) + (a >> 31)); \
|
||||
for (j = 0; j < 15; j++) \
|
||||
LFSR[j] = LFSR[j+1]; \
|
||||
LFSR[15] = V; \
|
||||
}
|
||||
|
||||
#define BitReconstruction2(X1,X2) \
|
||||
|
||||
Reference in New Issue
Block a user