mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Remove warnings
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
int main(void)
|
||||
{
|
||||
int err = 0;
|
||||
int i;
|
||||
const unsigned char key[] = {
|
||||
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
|
||||
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
|
||||
|
||||
@@ -375,8 +375,6 @@ static int test_pkcs8_pem(void)
|
||||
char *pass = "password";
|
||||
SM2_KEY sm2_key;
|
||||
SM2_KEY sm2_buf;
|
||||
const uint8_t *attrs;
|
||||
size_t attrs_len;
|
||||
FILE *fp;
|
||||
|
||||
sm2_key_generate(&sm2_key);
|
||||
|
||||
@@ -141,7 +141,6 @@ static int test_sm3(void)
|
||||
};
|
||||
|
||||
int err = 0;
|
||||
char *p;
|
||||
uint8_t testbuf[sizeof(testhex)/2 + 1000];
|
||||
uint8_t dgstbuf[32];
|
||||
size_t testbuflen, dgstbuflen;
|
||||
@@ -156,7 +155,7 @@ static int test_sm3(void)
|
||||
|
||||
if (memcmp(dgstbuf, dgst, sizeof(dgst)) != 0) {
|
||||
int n;
|
||||
fprintf(stderr, "sm3 test %lu failed\n", i+1);
|
||||
fprintf(stderr, "sm3 test %zu failed\n", i+1);
|
||||
fprintf(stderr, "error calculating SM3 on %s\n", testhex[i]);
|
||||
fprintf(stderr, " digest(corret) = ");
|
||||
for (n = 0; n < sizeof(dgst); n++) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the License); you may
|
||||
|
||||
@@ -421,7 +421,7 @@ int zuc256_mac_test(void)
|
||||
{0xa35bb274,0xb567c48b,0x28319f11,0x1af34fbd},
|
||||
{0x3a83b554,0xbe408ca5,0x494124ed,0x9d473205},
|
||||
};
|
||||
int i, j;
|
||||
unsigned int i, j;
|
||||
|
||||
bswap_buf((uint32_t *)tag32, sizeof(tag32)/4);
|
||||
bswap_buf((uint32_t *)tag64, sizeof(tag64)/4);
|
||||
|
||||
Reference in New Issue
Block a user