summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 668562d)
raw | patch | inline | side by side (parent: 668562d)
author | Jouni Malinen <j@w1.fi> | |
Sat, 5 Dec 2009 20:13:33 +0000 (22:13 +0200) | ||
committer | Jouni Malinen <j@w1.fi> | |
Sat, 5 Dec 2009 20:13:33 +0000 (22:13 +0200) |
tests/test-md4.c | patch | blob | history |
diff --git a/tests/test-md4.c b/tests/test-md4.c
index 4058486a7de11962cd6e43a1585f1aa62d15a0dd..e390d0f53b32f82d24400b9db2166913431a50d1 100644 (file)
--- a/tests/test-md4.c
+++ b/tests/test-md4.c
/*
* Test program for MD4 (test vectors from RFC 1320)
- * Copyright (c) 2006, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
{
struct {
char *data;
- u8 *hash;
+ char *hash;
} tests[] = {
{
"",
for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) {
printf("MD4 test case %d:", i);
- addr[0] = tests[i].data;
+ addr[0] = (u8 *) tests[i].data;
len[0] = strlen(tests[i].data);
md4_vector(1, addr, len, hash);
if (memcmp(hash, tests[i].hash, 16) != 0) {
printf(" OK");
if (len[0]) {
- addr[0] = tests[i].data;
+ addr[0] = (u8 *) tests[i].data;
len[0] = strlen(tests[i].data);
- addr[1] = tests[i].data + 1;
+ addr[1] = (u8 *) tests[i].data + 1;
len[1] = strlen(tests[i].data) - 1;
md4_vector(1, addr, len, hash);
if (memcmp(hash, tests[i].hash, 16) != 0) {