Remove WIN32 warnings

This commit is contained in:
Zhi Guan
2023-02-06 22:36:39 +08:00
parent d4d2f64aaa
commit 591db2cc01
10 changed files with 5 additions and 12 deletions

View File

@@ -17,7 +17,6 @@
int main(int argc, char **argv)
{
uint8_t buf[4096];
ssize_t len;
uint8_t dgst[32];
int i;

View File

@@ -18,7 +18,7 @@ int main(int argc, char **argv)
{
SM3_CTX sm3_ctx;
uint8_t buf[4096];
ssize_t len;
size_t len;
uint8_t dgst[32];
int i;

View File

@@ -27,7 +27,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (sm4_cbc_decrypt_init(&cbc_ctx, key, iv) != 1) {

View File

@@ -27,7 +27,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (sm4_cbc_encrypt_init(&cbc_ctx, key, iv) != 1) {

View File

@@ -27,7 +27,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (sm4_ctr_encrypt_init(&cbc_ctx, key, ctr) != 1) {

View File

@@ -26,7 +26,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (zuc_encrypt_init(&zuc_ctx, key, iv) != 1) {