tiger test vectors unusual?
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Nov 11 08:43:14 CET 2009
in tests/basic.c, it looks like the following two test vectors are
displayed for the tiger192 digest:
{ GCRY_MD_TIGER, "",
"\x24\xF0\x13\x0C\x63\xAC\x93\x32\x16\x16\x6E\x76"
"\xB1\xBB\x92\x5F\xF3\x73\xDE\x2D\x49\x58\x4E\x7A" },
{ GCRY_MD_TIGER, "abc",
"\xF2\x58\xC1\xE8\x84\x14\xAB\x2A\x52\x7A\xB5\x41"
"\xFF\xC5\xB8\xBF\x93\x5F\x7B\x95\x1C\x13\x29\x51" },
however the test vectors i could find on the net don't seem to agree
that these are the correct values:
http://www.cs.technion.ac.il/~biham/Reports/Tiger/test-vectors-nessie-format.dat
suggests:
Set 1, vector# 0:
message="" (empty string)
hash=3293AC630C13F0245F92BBB1766E16167A4E58492DDE73F3
Set 1, vector# 2:
message="abc"
hash=2AAB1484E8C158F2BFB8C5FF41B57A525129131C957B5F93
CPAN's Digest::Tiger contains the same two values in its test suite as
the nessie test vectors, as do the test vectors at:
http://common-lisp.net/project/clbuild/mirror/ironclad/test-vectors/tiger.testvec
the test vectors in http://www.hotpixel.net/TigerNET102.zip also agree
with these other implementations (and disagree with gcrypt), as do the
test vectors in http://org.rodage.com/pub/java/security/TigerTest.java
and the wider consensus '' test vector is again corroborated here:
http://www.febooti.com/products/filetweak/members/hash-and-crc/test-vectors/
I've yet to find another Tiger implementation with the same test vectors
as gcrypt's test vectors.
Is gcrypt's implementation of Tiger trying to implement a different
algorithm than these other implementations or is there a bug somewhere?
Or have i misunderstood something?
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 891 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20091111/87568311/attachment.pgp>
More information about the Gcrypt-devel
mailing list