mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Add missing 'const' on selftest data
This commit is contained in:
@ -300,10 +300,10 @@ int pkcs5_self_test( int verbose )
|
||||
|
||||
#define MAX_TESTS 6
|
||||
|
||||
static size_t plen[MAX_TESTS] =
|
||||
static const size_t plen[MAX_TESTS] =
|
||||
{ 8, 8, 8, 24, 9 };
|
||||
|
||||
static unsigned char password[MAX_TESTS][32] =
|
||||
static const unsigned char password[MAX_TESTS][32] =
|
||||
{
|
||||
"password",
|
||||
"password",
|
||||
@ -312,10 +312,10 @@ static unsigned char password[MAX_TESTS][32] =
|
||||
"pass\0word",
|
||||
};
|
||||
|
||||
static size_t slen[MAX_TESTS] =
|
||||
static const size_t slen[MAX_TESTS] =
|
||||
{ 4, 4, 4, 36, 5 };
|
||||
|
||||
static unsigned char salt[MAX_TESTS][40] =
|
||||
static const unsigned char salt[MAX_TESTS][40] =
|
||||
{
|
||||
"salt",
|
||||
"salt",
|
||||
@ -324,13 +324,13 @@ static unsigned char salt[MAX_TESTS][40] =
|
||||
"sa\0lt",
|
||||
};
|
||||
|
||||
static uint32_t it_cnt[MAX_TESTS] =
|
||||
static const uint32_t it_cnt[MAX_TESTS] =
|
||||
{ 1, 2, 4096, 4096, 4096 };
|
||||
|
||||
static uint32_t key_len[MAX_TESTS] =
|
||||
static const uint32_t key_len[MAX_TESTS] =
|
||||
{ 20, 20, 20, 25, 16 };
|
||||
|
||||
static unsigned char result_key[MAX_TESTS][32] =
|
||||
static const unsigned char result_key[MAX_TESTS][32] =
|
||||
{
|
||||
{ 0x0c, 0x60, 0xc8, 0x0f, 0x96, 0x1f, 0x0e, 0x71,
|
||||
0xf3, 0xa9, 0xb5, 0x24, 0xaf, 0x60, 0x12, 0x06,
|
||||
|
Reference in New Issue
Block a user