Add missing 'const' on selftest data
diff --git a/library/pkcs5.c b/library/pkcs5.c
index 65f3d5d..c1bab70 100644
--- a/library/pkcs5.c
+++ b/library/pkcs5.c
@@ -300,10 +300,10 @@
#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 @@
"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 @@
"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,