mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Fix couple of compiler warnings
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f1aac5c488
commit
2e3f286253
@ -412,7 +412,7 @@ int main(int argc, char *argv[])
|
||||
u8 psk[32];
|
||||
struct passphrase_test *test = &passphrase_tests[i];
|
||||
pbkdf2_sha1(test->passphrase,
|
||||
test->ssid, strlen(test->ssid),
|
||||
(const u8 *) test->ssid, strlen(test->ssid),
|
||||
4096, psk, 32);
|
||||
if (memcmp(psk, test->psk, 32) == 0)
|
||||
printf("Test case %d - OK\n", i);
|
||||
@ -426,8 +426,8 @@ int main(int argc, char *argv[])
|
||||
for (i = 0; i < NUM_RFC6070_TESTS; i++) {
|
||||
u8 dk[25];
|
||||
struct rfc6070_test *test = &rfc6070_tests[i];
|
||||
pbkdf2_sha1(test->p, test->s, strlen(test->s), test->c,
|
||||
dk, test->dk_len);
|
||||
pbkdf2_sha1(test->p, (const u8 *) test->s, strlen(test->s),
|
||||
test->c, dk, test->dk_len);
|
||||
if (memcmp(dk, test->dk, test->dk_len) == 0)
|
||||
printf("Test case %d - OK\n", i);
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user