Remove warnings

This commit is contained in:
Zhi Guan
2024-05-23 17:29:45 +08:00
parent 4f21be027e
commit ec16879fd8
3 changed files with 2 additions and 3 deletions

View File

@@ -381,7 +381,7 @@ void sm3_xmss_derive_root(const uint8_t xmss_secret[32], int height,
hash256_prf_init(&prf_seed_ctx, seed);
// generate all the wots pk[]
for (i = 0; i < (1<<height); i++) {
for (i = 0; i < (uint32_t)(1<<height); i++) {
//HASH256_CTX prf_ctx = prf_keygen_ctx;
hash256_bytes_t wots_sk[67];
hash256_bytes_t wots_pk[67];

View File

@@ -2001,7 +2001,7 @@ void sm9_z256_point_mul(SM9_Z256_POINT *R, const sm9_z256_t k, const SM9_Z256_PO
uint64_t window_size = 5;
SM9_Z256_POINT T[16];
int R_infinity = 1;
int n = (int)(256 + window_size - 1)/window_size;
int n = (int)((256 + window_size - 1)/window_size);
int i;
// T[i] = (i + 1) * P

View File

@@ -399,7 +399,6 @@ static int test_SDF_ExternalVerify_ECC(void)
0x3e, 0xb4, 0xb6, 0x66, 0x20, 0x52, 0x0c, 0xf4,
},
};
unsigned char saved_byte;
int ret;
ret = SDF_OpenDevice(&hDeviceHandle);