summaryrefslogtreecommitdiffstats
path: root/test/tst-md5.c
diff options
context:
space:
mode:
authorunknown <unknown@unknown>2009-10-23 04:30:00 +0000
committerunknown <unknown@unknown>2009-10-23 04:30:00 +0000
commit1bd02c3f58179927245376d9f0762d19a351df23 (patch)
treeef00b2976f8e4e9a20277f1aa883c406e4935ebe /test/tst-md5.c
parentddf5c42f67757000d6ec7686b92a667c2a252dca (diff)
downloadiksemel-1bd02c3f58179927245376d9f0762d19a351df23.zip
iksemel-1bd02c3f58179927245376d9f0762d19a351df23.tar.gz
iksemel-1bd02c3f58179927245376d9f0762d19a351df23.tar.xz
Imported from iksemel-1.4.tar.gz.vendor
Diffstat (limited to 'test/tst-md5.c')
-rw-r--r--test/tst-md5.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/tst-md5.c b/test/tst-md5.c
index 82584ae..dce809f 100644
--- a/test/tst-md5.c
+++ b/test/tst-md5.c
@@ -1,5 +1,5 @@
/* iksemel (XML parser for Jabber)
-** Copyright (C) 2004 Gurer Ozen <madcat@e-kolay.net>
+** Copyright (C) 2004 Gurer Ozen
** This code is free software; you can redistribute it and/or
** modify it under the terms of GNU Lesser General Public License.
*/
@@ -16,7 +16,14 @@ int main (int argc, char *argv[])
char *str;
char *hash;
} known_hashes[] = {
+ // Taken from http://tools.ietf.org/html/rfc1321
+ { "", "d41d8cd98f00b204e9800998ecf8427e" },
+ { "a", "0cc175b9c0f1b6a831c399e269772661" },
{ "abc", "900150983cd24fb0d6963f7d28e17f72" },
+ { "message digest", "f96b697d7cb7938d525a2f31aaf161d0" },
+ { "abcdefghijklmnopqrstuvwxyz", "c3fcd3d76192e4007dfb496cca67e13b" },
+ { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
+ "d174ab98d277d9f5a5611c2c9f419d9f" },
{ "12345678901234567890123456789012345678901234567890123456789012345678901234567890",
"57edf4a22be3c955ac49da2e2107b67a" },
{ NULL, NULL }