From 084786dcf9b6bebc2c4fe78cee3d0d86513dfff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 4 Dec 2006 23:53:30 +0000 Subject: [PATCH] Explain what the fixed "sha1" checksum test tries to test. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19217 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/test_rsa.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/des/test_rsa.c b/lib/des/test_rsa.c index 187b65349..7507eebb5 100644 --- a/lib/des/test_rsa.c +++ b/lib/des/test_rsa.c @@ -202,6 +202,12 @@ main(int argc, char **argv) } + /* + * Assuming that you use the RSA key in the distribution, this + * test will generate a signature have a starting zero and thus + * will generate a checksum that is 127 byte instead of the + * checksum that is 128 byte (like the key). + */ { const unsigned char sha1[20] = { 0x6d, 0x33, 0xf9, 0x40, 0x75, 0x5b, 0x4e, 0xc5, 0x90, 0x35,